ON ERROR RESUME NEXT
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY=InputBox("完美Vista提示(OEM版无效):"&vbCr&vbCr&" 本脚本程序将修改当前 Windows 的序列号以便使VOL版(即大客户版)Windows XP通过正版验证。"&vbCr&" 请按“确定”激活操作。"&vbCr&vbCr&"欢迎访问完美Vista官方网站
http://www.WanmeiVista.com/","WindowsXP(VOL版)通过正版验证工具","QC986-27D34-6M3TY-JJXP9-TBGMD")
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 "您的 序列号 修改成功。请登陆微软官方网站进行正版验证。"
end if
if err <> 0 then
Wscript.echo "修改失败!请检查输入的 CD-KEY 是否与当前 Windows 版本相匹配。"
Err.Clear
end if
Next