Anelevated Command Promptis necessary for commands that involve changing data.

View Detailed License Info

This command for slmgr.vbs reveals a lot more information about your setup.

Arestart of your computeris required to complete this command.

Result from Windows Script Host showing activation status after executing slmgr xpr

There’s a limit to how many times you might rearm the Windows activation files.

Check the rearm count with the/dlvcommand above to see how many cycles are left.

Remove Windows Product Key

This command removes the product key fromWindows Registry.

windows script host prompt with software licensing information

Change Windows Product Key

Change the Windows product key with this slmgr command.

Replace those numbers with the real product key, but be sure to include the dashes.

Restart the computer to fully apply the new key.

Just reboot your box after you see theUninstalled product key successfullymessage.

For example, you might’t manage Windows activation on a Windows 7 computer from a Windows Vista computer.

Slmgr.vbs is used only for the Windows operating system.

Ospp.vbs manages volume licensing for other Microsoft products.

Right-clickCommand Prompt>Run as administrator.

If you see aUser Account Controlwindow, selectYesto give permission to continue.

Toclear the Windows command prompt screen, typeCLS> pressEnter.

This will flush the entire program screen.

you’re free to also close and reopen the command prompt to clear it.