ON ERROR RESUME NEXT

Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY=InputBox("微软的正版验证工具："&vbCr&vbCr&"    本程序将自动更换你当前 Windows 的序列号，助你通过微软正版验证。"&vbCr&vbCr&"序列号(OEM版无效,默认版本为 XP VLK)：","Windows XP序列号自动更换器_ParcaePasswords","MRX3F-47B9T-2487J-KWKMF-RPWBY")
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 "CD-KEY更换成功！恭喜你成为 Windows 正版用户！"
end if

if err <> 0 then
Wscript.echo "CD-KEY更换失败！请检查输入的 CD-KEY 是否与当前 Windows 版本相匹配！"
Err.Clear
end if

Next

