> 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-testing/chaos-faults/windows.md). Agents can also search and read this documentation through its [MCP server](https://developer.harness.io/~gitbook/mcp).

# Windows

Windows chaos faults that stress CPU, memory, and disks, disrupt network traffic, or kill processes on Windows Server VMs.

Windows faults run on a Windows Server VM through the Windows chaos infrastructure, a service installed on the target. The faults stress CPU, memory, and disks, block or degrade network traffic, and kill processes on the VM where the infrastructure runs.

***

## Before you begin

* **Windows chaos infrastructure:** The `WindowsChaosInfrastructure` service is running on each target VM and the infrastructure shows as **Connected** in Harness. Go to [Windows infrastructure](https://developer.harness.io/resilience-testing/chaos-testing/infrastructure/windows.md) to install it.
* **Administrator for advanced faults:** Disk stress, blackhole, and network faults need the infrastructure to run as an administrator. Go to [Windows fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/permissions.md) to check which faults need it.

Windows faults set their duration with `DURATION`, a Go duration string such as `30s` or `5m`, not with `TOTAL_CHAOS_DURATION` in seconds. Go to [Common tunables](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/common-tunables.md#linux-and-windows-fault-duration) for the details.

***

## Supported environments

Windows faults are tested on these Windows Server versions and hosts. A fault page lists any environment it does not support.

| Host   | Windows Server 2022 | Windows Server 2019 | Windows Server 2016 |
| ------ | ------------------- | ------------------- | ------------------- |
| AWS    | Supported           | Supported           | Supported           |
| Azure  | Supported           | Supported           | Supported           |
| GCP    | Supported           | Not tested          | Not tested          |
| VMware | Supported           | Not tested          | Not tested          |

***

## Faults

| Fault                                                                                                                                            | What it does                                    | Failure type | Reversible |
| ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- | ------------ | ---------- |
| [Windows blackhole chaos](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-blackhole-chaos.md)         | Blocks traffic to target hosts and IP addresses | Network      | Yes        |
| [Windows CPU stress](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-cpu-stress.md)                   | Consumes CPU on the VM                          | Resource     | Yes        |
| [Windows disk stress](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-disk-stress.md)                 | Generates disk IO load under a path             | Resource     | Yes        |
| [Windows memory stress](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-memory-stress.md)             | Consumes memory on the VM                       | Resource     | Yes        |
| [Windows network corruption](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-network-corruption.md)   | Corrupts a percentage of outbound packets       | Network      | Yes        |
| [Windows network duplication](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-network-duplication.md) | Duplicates a percentage of outbound packets     | Network      | Yes        |
| [Windows network latency](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-network-latency.md)         | Adds latency to outbound traffic                | Network      | Yes        |
| [Windows network loss](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-network-loss.md)               | Drops a percentage of outbound packets          | Network      | Yes        |
| [Windows process kill](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/windows-process-kill.md)               | Kills processes by ID or name                   | State        | Partial    |

***

## Troubleshooting

<details>

<summary>The Windows chaos infrastructure service stays stopped with a logon failure</summary>

The account that runs `WindowsChaosInfrastructure` does not have the **Log on as a service** right. Grant it, then start the service. Go to [Windows fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/permissions.md#log-on-as-a-service) for the steps.

</details>

<details>

<summary>A Windows fault fails with an access denied error</summary>

The fault is an advanced fault and the infrastructure runs as a non-administrator user, or the PowerShell execution policy blocks local scripts. Run the infrastructure as an administrator, and set the execution policy to `RemoteSigned`. Go to [Windows fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/permissions.md) for the list.

</details>

***

## Next steps

* Go to [Windows fault permissions](https://developer.harness.io/resilience-testing/chaos-testing/chaos-faults/windows/permissions.md) to check the user each fault needs.
* Go to [Windows infrastructure](https://developer.harness.io/resilience-testing/chaos-testing/infrastructure/windows.md) to install the infrastructure on more VMs.

{% @harness-feedback/feedback %}
