Vista: Activation and the SLMGR Command (options explained)

Contributor Icon Contributed by Jimmy Selix  
Tag Icon Tagged: Microsoft Vista  

This is a quickie recipe explaining exactly what the slmgr command and options do. This is very useful for a corporate or home business or power user. Lets take a look!


Everyone by now knows about Vista and its updated activation scheme. Basically, each Vista install CD/DVD can be ran w/o a key as a trial version. After the 30 day trial expires, Vista will enter RFM mode (reduced function mode) and eventually will start disabling OS components/features.

Most corporate environments will most likely want to have a more centralized way to handle activation (vs going to each pc, activating each one) since corp builds of the OS will not allow installs without having to activate. Lets dig into the SLMGR command and see what things we can learn about Vista and its activation.

1. Hold down the Win Key + R to bring up the Run box. Type CMD to get up our ever classic command prompt.

(if you are not an admin, you will need to run the command prompt as admin by going to Start Menu > All Programs > Accessories, then right click on Command Prompt and go to Run As. Choose an admin account and password and run.

2. you can run the slmgr command like this: slmgr [machinename [user pass]] [option]
you can find info/activate both locally and on a remote pc (ie slmgr vista2 administrator password -dli)

by default, if you do not specify a machinename and user pass you will check the current pc your running command prompt on. we will only concentrate on the local pc and not use a machinename or account

if you get an error, ’slmgr’ is not a recognized as an internal or external command….. , you may have to change to the system32 folder. use these commmands:
type: cd\
type: cd windows\system32

your prompt should change to C:\windows\system32>

slmgr command and options:

slmgr -dli (this will display the current activation/licensing info of the pc your on)

slmgr -ipk xxxx-xxxx-xxxx-xxxx (allows you to replace the current product key with the specified)

slmgr -xpr (shows expiration date of current license)

slmgr -upk (uninstalls current product key and i would assume puts license back to trial state)

slmgr -ato (activates current pc’s license)

slmgr -skms activationservername
or
slmgr -skms port
or
slmgr -skms activationservername:port (sets KMS server used for activation and/or port, ie slmgr -skms 192.168.10.1:8090 or slmgr -skms KMSServer:8090)

slmgr -rearm (resets the licensing status of the machine)

slmgr -ckms (clears the name of KMS server used to default and port to default)

So you could basically create batch files for a corp/network environment and then have each copy use the Corp key information to install the product key, change the activation/kms name in Vista to the centralized one, and then activate the copy of Vista back to the registered KMS server.

Hopefully you now can have more control and info on your Vista’s license status and activation.

 

9 Comments -


  1. Scott said on February 13, 2009

    Dear Sir,

    After I switched to C:WindowsSystem32>, I still receive “’slmgr’ is not recognized as an internal or external command, operable program or batch file”. Could you please let me know how I can get ride of the errors? My system is Dell PE2950 /w Windows 2003.
    Thank you in advance!

    Scott

  2. Chillout said on February 20, 2009

    Its a vista feature mate

  3. Anonymous said on July 30, 2009

    WOW! I really love reading… And this just blows me away… Thank you very much for sharing this.

  4. Anonymous said on May 1, 2010

    type slmgr.vbs -dli

    if you want to save the output use

    cscript c:windowssystem32slmgr.vbs -dli > C:licence.txt

  5. sahil said on May 27, 2010

    slmgr -upk (uninstalls current product key and i would assume puts license back to trial state)

    what do u mean by assume?

    I have lost the product Because of u?

  6. Ashutosha Palo said on August 18, 2010

    hey dear can u tell me how to activate after use the three time slmgr.vbs -rearm

  7. Unstable Atom 0000 said on August 27, 2010

    this was helpful….

  8. louis said on September 25, 2010

    thank you for sharing with us,i like it very much and i will always give attention.

  9. Ibos1 said on December 22, 2010

    windows says 0 cannot by inside a serial key
    slmgr -ipk 89580-OEM-7332132-00031

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -