To activate your Windows 10 or Windows 11 via the command prompt, please open the command prompt as an administrator.

Click on Start, type CMD, right-click on “Command Prompt,” and select “Run as administrator.” Enter the following commands in the command prompt, replacing XXXXX with your product code:

slmgr /ipk XXXXX

and to activate:

slmgr /ato