The way to do this is either from the command line:
Vista:
Windows 7:
Or using the GUI.
Note: If you see “X days to activate. Activate Windows now,” select the link to open the activation wizard, then follow the steps to activate your license.
– Main.FredPettis - 2010-08-14