> For the complete documentation index, see [llms.txt](https://deploykey.gitbook.io/deploykey-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://deploykey.gitbook.io/deploykey-docs/windows-server-keys/activation-by-cmd.md).

# Activation by CMD

{% stepper %}
{% step %}

### Run CMD as Administrator

{% endstep %}

{% step %}

### Enter these commands:

```
slmgr /ipk YOUR-PRODUCT-KEY-HERE
slmgr /ato
```

{% endstep %}
{% endstepper %}

{% hint style="warning" %}
If you are in EVAL (evaluation edition), please convert to the regular version first:

{% stepper %}
{% step %}

### Run CMD as Administrator

{% endstep %}

{% step %}

### Convert your version

{% tabs %}
{% tab title="Windows Server 2022" %}

#### Server 2022 Standard:

```
DISM /online /Set-Edition:ServerStandard /ProductKey:VDYBN-27WPP-V4HQT-9VMD4-VMK7H /AcceptEula
```

#### Server 2022 Datacenter:

```
DISM /online /Set-Edition:ServerDatacenter /ProductKey:WX4NM-KYWYW-QJJR4-XV3QB-6VM33 /AcceptEula
```

{% endtab %}

{% tab title="Windows Server 2025" %}

#### Server 2025 Standard:

```
DISM /online /Set-Edition:ServerStandard /ProductKey:TVRH6-WHNXV-R9WG3-9XRFY-MY832 /AcceptEula
```

#### Server 2025 Datacenter:

```
DISM /online /Set-Edition:ServerDatacenter /ProductKey:D764K-2NDRG-47T6Q-P8T8W-YP6DF /AcceptEula
```

{% endtab %}
{% endtabs %}
{% endstep %}

{% step %}

### Wait for restart

After server restarts, you shouldn't see the Evaluation watermark anymore. If you still do, please manually restart the server again.
{% endstep %}

{% step %}

### Activate Windows

```
slmgr /ipk YOUR-PRODUCT-KEY-HERE
slmgr /ato
```

{% endstep %}
{% endstepper %}
{% endhint %}
