Open PowerShell or Windows Shell (cmd.exe) as administrator.
Enter license key:
c:\> slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxxwhere the x's are replaced with your license key.
Start Windows Activation Client:
c:\> slui.exe 4Activate Windows:
Select you country.
Call the phone number.
Listen to the robot and select numbers for Windows Server activation.
Enter the Confirmation ID from slui in the phone as guided by the robot.
Wait a few seconds for acceptance.
Enter the activation code on the computer. Or in a editor as the activation code can be reused with the same License Key on the same product, e.g. Windows Server 2016 Standard Edition.
Verify that Windows is activated. This can be done by opening the System window. If you have the window open from before the activation a refresh will not show the true activation status. Close the System window and open it again.
The process is very much the same as described in this post by Kanijude Kajendra: "How to Activate Windows 2012 R2 Server offline".