Use the Activation Wizard
Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 How to back up and restore the registry in Windows
If you do not have to change many Volume Licensing product keys, you can use the Activation Wizard.
NoteWe recommend that you run System Restore on Windows XP to create a new restore point before you follow these steps. For information about how to create a restore point by using System Restore, see the "To Create a Restore Point" help topic in Help and Support.
- Click Start, click Run, type regedit, and then click OK.
- In the left pane, locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\WindowsNT\Current Version\WPAEvents
- In the right pane, right-click OOBETimer, and then click Modify.
- Change at least one digit of the OOBETimer value to deactivate Windows.
- Click Start, click Run, type the following command, and then click OK:
%systemroot%\system32\oobe\msoobe.exe /a
- Click Yes, I want to telephone a customer service representative to activate Windows, and then click Next.
- Click Change Product key, type the new product key in the New key boxes, and then click Update.
Note If the previous Activation Wizard screen appears again, click Remind me later, and then restart the computer. - Repeat steps 6 and 7 to verify that Windows is started. Click OK when you receive the following message:
Windows is already activated. Click OK to exit.
- Install any Windows service packs that you want to install.
NoteIf you cannot restart Windows after you install a service pack, press F8 when you restart the computer, click Last Known Good Configuration, and then repeat this procedure.
Use a script
You can create a WMI script that changes the Volume Licensing product key, and then deploy this script in a startup script. The ChangeVLKey2600.vbs and ChangeVLKeySP1 sample scripts use the new Volume Licensing key that you want to use, in a five-part alphanumeric form, as a single argument. We recommend that you use the ChangeVLKey2600.vbs script on Windows XP-based computers that are not running Service Pack 1 (SP1) or a later service pack. We also recommend that you use the ChangeVLKeySP1.vbs script on Windows XP-based computers that are running SP1 or a later service pack. These scripts perform the following functions:
- They remove the hyphen characters (-) from the five-part alphanumeric product key.
- They create an instance of the win32_WindowsProductActivationclass.
- They call the SetProductKeymethod with the new Volume Licensing product key.
You can create a batch file or a file that uses either of the following sample scripts together with the new product key as an argument. Then, you can deploy that file as part of a startup script or you can run the file from the command line to change the product key on a single computer.
For more information about how to script the product key, visit the following Microsoft Web site:
ChangeVLKeySP1.vbs
'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer.
'
'***************************************************************************
ON ERROR RESUME NEXT
if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if
Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if
Next
ChangeVLKey2600.vbs
'
' WMI Script - ChangeVLKey.vbs
'
' This script changes the product key on the computer.
'
'***************************************************************************
ON ERROR RESUME NEXT
if Wscript.arguments.count<1 then
Wscript.echo "Script can't run without VolumeProductKey argument"
Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX"
Wscript.quit
end if
Dim VOL_PROD_KEY
VOL_PROD_KEY = Wscript.arguments.Item(0)
VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if any
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WPAEvents\OOBETimer" 'delete OOBETimer registry value
for each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 then
WScript.Echo Err.Description, "0x" & Hex(Err.Number)
Err.Clear
end if
Next
You can use the ChangeVLKeySP1.vbs script from a command line by performing the following action:
Click
Start, click
Run type the following command, and then click
OK:
c:\changevlkeysp1.vbs ab123-123ab-ab123-123ab-ab123
Note In this command,
ab123-123ab-ab123-123ab-ab123is a placeholder that represents the new product key.