> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-engineering/faults/chaos-fault-categories/windows/prerequisites.md).

# Prerequisites

Windows chaos faults disrupt the resources of an application running on a Windows virtual machine. To execute these faults, you need to [install a chaos infrastructure in the Windows VM](/resilience-testing/chaos-engineering/use-chaos-engineering/infrastructure/infrastructures.md).

This section describes the interoperability matrix and the prerequisites to execute Windows chaos faults.

#### Interoperability matrix to determine compatibility <a href="#interoperability-matrix-to-determine-compatibility" id="interoperability-matrix-to-determine-compatibility"></a>

| Platform | Windows Server 2022 | Windows Server 2019 | Windows Server 2016 |
| -------- | ------------------- | ------------------- | ------------------- |
| AWS      | Yes                 | Yes                 | Yes                 |
| VMware   | Yes                 | NA                  | NA                  |
| Azure    | Yes                 | Yes                 | Yes                 |
| GCP      | Yes                 | NA                  | NA                  |

Before the installation, you need to fulfill a set of prerequisites, described below.

#### Step 1. Use a password to connect to the Windows VM <a href="#step-1-use-a-password-to-connect-to-the-windows-vm" id="step-1-use-a-password-to-connect-to-the-windows-vm"></a>

If you don't already have a password, you can configure one using the steps below.

1. Open your command prompt as an 'admin' and execute the following command.

   ```
   C:\Users\Administrator>net user Administrator <your-password>
   ```

If the command execution is successful, it displays the message `The command completed successfully.`

#### Step 2. Verify that the Windows VM has service log on access <a href="#step-2-verify-that-the-windows-vm-has-service-log-on-access" id="step-2-verify-that-the-windows-vm-has-service-log-on-access"></a>

If the Windows VM has service log on access, it means the VM has the required permissions to create and manage services.

1. To verify this, navigate to **Local security policy** -> **Local Policies** -> **User Rights Agreement** -> **Log on as a service**.

![](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-1d30d6c85de5a45b878fe11a7dd9f0f40c68da06%2Flsp-1.png?alt=media)

2. Double click on **Log on as a service**.

![](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-9d519a03b5eb1f0ae069758bdeb5082eb48e69da%2Fadd-user-2.png?alt=media)

3. If you don't have the 'Administrator' added, click **Add User or Group**. Add the admin name and click **OK**.

![](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-30e23d9d0bca6ae1790dbfa6e8c465e304c78b1d%2Fenter-name-3.png?alt=media)

4. Click **Apply** and **OK**. This will give you the permissions to log on as a service.

![](https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-b579d7724413c72987f1dcc4f4187c3457d9272a%2Fapply-4.png?alt=media)

{% hint style="info" %}
Your Windows chaos infrastructure was installed successfully but it may fail to start because you don't have log on access to the infrastructure service.

1. To resolve this, navigate to **Task Manager** from your command prompt (run as admin) and right click **WindowsChaosInfrastructure** and click **Open Services**.

<img src="https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-d26e73f7dcd99f6981b6ae767d2a97d5c8c20aa6%2Falt-1.png?alt=media" alt="" data-size="original">

* Instead of **Open Services**, you can right click and click **Start** to start the service.

2. The **Services** tab is opened. Navigate to **WindowsChaosInfrastructure**. Choose the **Log on** tab at the top of the window and enter a password and confirm it. Click **Apply** and **Ok**.

<img src="https://2284173296-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlSkpbpeYJ3rfGUkIrcyQ%2Fuploads%2Fgit-blob-d8f89d0f33793644802743147be4ae705d4f19b5%2Falt-2.png?alt=media" alt="" data-size="original">

3. Click the **Start** button the left-hand side, which will provide log on access to Windows VM. This method serves as an alternative to provide log on access to Windows VM.
   {% endhint %}

{% @harness-feedback/feedback %}
