How to activate Windows 10 / Server 2016 through command line
Command Line to Launch Activation GUI:
click START (gets you to the tiles)
type RUN
type slui 3 and press ENTER
yes, SLUI: which stands for SOFTWARE LICENSING USER INTERFACE
SLUI 1 brings up the activation status window
SLUI 2 brings up the activation window
SLUI 3 brings up the CHANGE PRODUCT KEY window
SLUI 4 brings up the CALL MICROSOFT & MANUALLY ACTIVATE window
Type in your product key
Command Line to Activate Windows Through Command Line:
Launch a CMD as an Administrator
Type: slmgr.vbs /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
Press Enter If your key is valid and you are connected to the internet, it should activate within a second or two.
Example:
Open Administrator Command Prompt
c:\windows\system32\slmgr.vbs /ipk PRODUCT_KEY
hit ENTER
Sample: c:\windows\system32\slmgr.vbs /ipk 12345-12345-12345-12345-12345