ON ERROR RESUME NEXT
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY=InputBox("Jia專用 程序?qū)⒆詣?dòng)替換你當(dāng)前 Windows 的序列號(hào),通過(guò)微軟驗(yàn)證完全正版。"&vbCr&vbCr&"序列號(hào)(OEM版無(wú)效,默認(rèn)版本為 XP VLK):","Windows XP 序列號(hào)自動(dòng)更換器","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 "OK!去微軟驗(yàn)證吧GOGOGO~."
end if
if err <> 0 then
Wscript.echo "替換失??!輸入的 CD-KEY 與當(dāng)前的版本不匹配。"
Err.Clear
end if
Next