Activation in Server Core

I missed Friday last week due to the short week, so I’ll see if I can post twice this week.


I’ve received several questions in the last week dealing with activation, so I thought I would post some information on activation. There is a VBScript in Vista/Longhorn that can be used to activate from the command line: slmgr.vbs.


To activate Server Core you can run:

Cscript slmgr.vbs –ato


There is a known issue with the script in Beta 2 and covered in the release notes, where the script attempts to activate the product key for every possible type, retail, OEM, etc. Therefore you will receive a series of activation messages, all but one of which will be a failure. If you did not receive at least one success message, you should verify your connection to the Internet and proxy settings (Netsh winhttp proxy)


To verify if activation was successful you can run:

Cscript slmgr.vbs –did


From the output, get the GUID for the appropriate product key, e.g. retail channel, and then run:

Cscript slmgr.vbs –dli GUID


For “License Status:” it will be either Licensed or Unlicensed, which indicates activated or not. If you have more then one GUID listed for the channel, you should try each of them, as at least one should show Licensed.


If you didn’t activate before the grace period expired, you can also use slmgr.vbs to remotely activate. This can be done remotely by including the servername, username and password along with the –ato switch.