Change Windows XP Operating System Serial Number

  
This article applies to: Microsoft Windows XP Professional Microsoft Windows XP Professional SP1 This article is used to describe how to change the serial number in Windows XP. You have 2 ways to modify it on Windows XP that has already been installed. Change the serial number, one is to use the activation wizard in the GUI interface, one is to use WMI (Windows Management Instrumentation) to achieve.

Use the activation wizard to modify

Microsoft strongly recommends that you make a system restore point before the modification to avoid accidents.

1. Click [Start], then click [Run];
2. Enter regedit and press Enter to open the Registry Editor;
3. Navigate to HKEY_LOCAL_MacHINE\\Software\\Microsoft\\WindowsNT\\ Current Version\\WPAEvents, right click on OOBETimer on the right, then select Modify;
4. Modify at least one byte to confirm the save.
5. Click [Start], then click [Run];
6. Enter %systemroot%\\system32\\oobe\\msoobe.exe /a
7. Select Activate by phone and click Next; BR> 8. Click to modify the serial number;
9. Enter the new serial number and select the update;

If you return to the previous screen, then select Activate later and restart;
< BR> 10. Repeat 5-8 steps until the modification is successful;
11. Reactivate.
12. Click OK.
13. Install SP1.

If you can't restart after installing SP1, press F8 when starting, choose to use [last correct configuration], and then repeat the above process.

<FONT face=Verdana>

Using script

There are 2 scripts below, one for WinXP without SP1 installed, and one for already installed. SP1 WinXP.

The following is a script for WinXP that has SP1 installed (ChangeVLKeySp1.vbs). The usage is the same as the script for WinXP without SP1 installed in the last paragraph of this article (example).

'
' WMI Script - ChangeVLKeySp1.vbs
'
' Windows XP With SP1
'
' 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:").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

The following script It is used for WinXP (ChangeVLKey2600.vbs) without SP1 installed.

'
' WMI Script - ChangeVLKey2600.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:").InstancesOf ( "win32_WindowsProductActivation")

result = Obj.SetProductKey (VOL_PROD_KEY)

if err <> 0 then
WScript.Echo Err.Description, "0x" & He x(Err.Number)
Err.Clear
end if

Next

Example: Script Usage

The following example describes the command line How to use a VBS script.

1. Click [Start], then click [Run];
2. Enter C:\\ChangeVLKeySp1.vbs ABCDE-ABCDE-ABCDE-ABCDE-ABCDE-ABCDE
Assume ChangeVLKeySp1.vbs In the C: root directory
ABCDE-ABCDE-ABCDE-ABCDE-ABCDE-ABCDE is the new serial number
The above ChangeVLKeySp1.vbs is applicable to WinXP with SP1 installed, and the use of ChangeVLKey2600.vbs without SP1 installed. The same is true for the method.
3. Then click [OK].
Copyright © Windows knowledge All Rights Reserved