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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
