# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://deploykey.gitbook.io/deploykey-docs/windows-server-keys/activation-by-cmd.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
