'
'Wmi script-changevlkey. vbs
'
'This script changes the product key on the computer (XP SP1 SP2 2003)
'
'Made by zyling.
'*************************************** ************************************
Do
On Error resume next
Dim vol_prod_key
If wscript. Arguments. Count <1 then
Vol_prod_key = inputbox ("usage instructions (OEM version is invalid):" & vbcr & "This script will modify the serial number of the current windows. Use the calculator to calculate the serial number matching the current Windows instance, copy and paste it into the following space. "& Vbcr &" Input Serial Number (XP vlk by default): "," Windows XP/2003 Serial Number replacement tool "," PJVCV-XCPPF-6GTKK-QXRPY-FBKGJ ")
If vol_prod_key = "" then
Wscript. Quit
End if
Else
Vol_prod_key = wscript. Arguments. Item (0)
End if
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 "your windows CD-key has been modified successfully. Check System Properties. "
End if
If err <> 0 then
Wscript. Echo "modification failed! Check whether the entered CD-key matches the current Windows version. "
Err. Clear
End if
Next
Loop