Teach you to change the windows xp operating system serial number

  
. You have 2 ways to modify the serial number on the already installed Windows XP. One is to use the activation wizard in the GUI interface, and the other is to use WMI (Windows Management Instrumentation) to implement of.
Using the Activation Wizard to Modify
Microsoft strongly recommends that you make a system restore point before making changes to avoid accidents.
1. Click [Start], then click [Run]; 2. Enter regedit and press Enter to open the Registry Editor; 3. Locate HKEY_LOCAL_MacHINE/Software/Microsoft/WindowsNT/Current Version/WPAEvents, right click on the right Hit OOBETimer and 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; 8. Click Modify Serial Number; 9. Enter Update the new serial number later;
If you return to the previous screen, select Activate later and restart;
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 scripts
There are 2 scripts, one for WinXP without SP1 installed, and one for WinXP with SP1 installed.
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 thenWscript.echo "Script can't run without VolumeProductKey argument"Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ -KLMNO-PRSTU-WYQZX"Wscript.quitend if
Dim VOL_PROD_KEYVOL_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 thenWScript.Echo Err.Description, "0x" & Hex(Err.Number)Err.Clearend if
Next
The following script is for WinXP (ChangeVLKey2600.vbs) without SP1 installed.
' ' WMI Script - ChangeVLKey2600.vbs'' This script changes the product key on the computer''************************** *************************************************< Br>ON ERROR RESUME NEXT
if Wscript.arguments.count<1 thenWscript.echo "Script can't run without VolumeProductKey argument"Wscript.echo "Correct usage: Cscript ChangeVLKey.vbs ABCDE-FGHIJ-KLMNO-PRSTU-WYQZX "Wscript.quitend if
Dim VOL_PROD_KEYVOL_PROD_KEY = Wscript.arguments.Item(0)VOL_PROD_KEY = Replace(VOL_PROD_KEY,"-","") 'remove hyphens if anyDim WshShellSet WshShell = WScript.CreateObject("WScript.Shell") WshShell.RegDelete "HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/WPAEvents/OOBETimer" 'delete OOBETimer registry valuefor each Obj in GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("win32_WindowsProductActivation")
result = Obj.SetProductKey (VOL_PROD_KEY)
if err <> 0 thenWScript.Echo Err.Description, "0x" & Hex(Err.Number)Err.Clearend if
Next
Example: Script Usage
The following example describes how to use the VBS script on the command line.
1. Click [Start], then click [Run]; 2. Enter C:/ChangeVLKeySp1.vbs ABCDE-ABCDE-ABCDE-ABCDE-ABCDE-ABCDE Assume ChangeVLKeySp1.vbs is placed in the C: root directory ABCDE-ABCDE -ABCDE-ABCDE-ABCDE-ABCDE is the new serial number above ChangeVLKeySp1.vbs is applicable to WinXP with SP1 already installed. The same is true for the use of ChangeVLKey2600.vbs without SP1. 3. Then click [OK].

Copyright © Windows knowledge All Rights Reserved