# Install Windows

Windows 11 for Arm installs from Microsoft's ISO, and each machine needs a Windows license of its own.

## Create a Windows machine

1. Choose **File > New Machine**.
2. Select **Windows 11 for Arm from an ISO File**, then click **Continue**.
3. Click **Download from Microsoft**, and download the multi-edition ISO for Arm64.
4. Drag the ISO to **Installation File**, or click **Choose**.
5. Enter a name, then a **Password** and **Verify** for the Windows account.
6. Click **Create**. Windows Setup runs for about 20 minutes, with no key presses.

Setup installs the [guest agent](https://osmates.com/docs/windows-guest-agent) and a local account with your Mac's user name. The first start signs in to it.

To create the same machine in Terminal, with the password in `$PASSWORD`:

```sh
printf '%s\n' "$PASSWORD" | osmates vm create win --image windows --iso Win11_Arm64.iso --password-stdin
osmates vm start win
```

Add `--user` for another account name. To bring a Windows machine over from another app, see [Move a machine from another app](https://osmates.com/docs/import-machine#move-windows-from-another-app).

## Choose the edition and language

The ISO decides the editions and the display language. Change the choices under **Windows** in the form.

| Setting | Default |
|---|---|
| Edition | Windows 11 Pro |
| Language | The ISO's display language |
| Region | Your Mac's region, or the closest one Windows has |
| Keyboard | Up to 8 of your Mac's layouts |
| Time Zone | Your Mac's, or UTC when Windows has no match |

Home and Home Single Language need your product key in **Product Key**. OSMates keeps the key only until creation ends.

Pro for Workstations, Pro Education, Education, and Enterprise install as Pro. At the first sign-in, Microsoft's setup key switches the edition. That key doesn't activate Windows.

To create an Education machine with German formats, a French keyboard, and Berlin time:

```sh
printf '%s\n' "$PASSWORD" | osmates vm create win --image windows --iso Win11_Arm64.iso --password-stdin \
    --edition education --region en-DE --keyboard 0000040C --time-zone Europe/Berlin
```

For Home, add `--product-key-stdin` and put the key on the line after the password. `osmates vm info win` shows what Windows installed.

## Activate Windows

Each machine needs its own license, and so does every clone. OSMates never activates Windows. In Windows, choose **Settings > System > Activation** and enter your key.

Windows 11 Pro keys work on Arm and x64. Microsoft lists your options in its [guidance for Macs](https://support.microsoft.com/en-us/windows/options-for-using-windows-11-with-mac-computers-with-apple-m1-m2-and-m3-chips-cd15fd62-9b34-4b78-b0bc-121baa3c568c).

A digital license follows the hardware Windows sees. Microsoft doesn't say which changes count.

| What you do | What Windows sees |
|---|---|
| Restart, or move within the same volume | The same hardware |
| Revert a snapshot | The same hardware, with a new VM Generation ID |
| Move to another volume | A new VM Generation ID |
| Change CPUs or memory | A new processor and memory |
| Clone | A new PC |
| Import from another app | The same system UUID, with new serial numbers, TPM, MAC address, and firmware |

If Windows deactivates, run the activation troubleshooter and choose **I changed hardware on this device recently**. Microsoft explains it in [Reactivate Windows after a hardware change](https://support.microsoft.com/en-us/windows/reactivating-windows-after-a-hardware-change-2c0e962a-f04c-145b-6ead-fb3fc72b6665).

## If the ISO won't install

OSMates checks the ISO before it copies anything. A refused ISO creates no machine. The reason appears under **Installation File**, and `vm create` exits with status 65.

The ISO has to be:

- Windows 11 for Arm64, build 26100 (24H2) or later. Microsoft's Enterprise evaluation is x64 only.
- One `install.wim` or `install.esd`, not a split `install.swm`.
- Windows 11, not Windows Server, which Microsoft publishes for x64 only.

If Setup doesn't start from an ISO that passed, creation waits for another file:

1. In the library, select the machine, then click **Choose the File and Resume**.
2. Select an ISO with the same edition and language.

To resume in Terminal instead:

```sh
osmates vm create win --resume --iso Win11_Arm64.iso
```
