cuitao

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

ON ERROR RESUME NEXT

 

Dim VOL_PROD_KEY

if Wscript_.arguments.count<1 then

VOL_PROD_KEY=InputBox("Powered By www.cnbeta.com"&vbCr&vbCr&" 本程序将自动替换你当前Windows 的序列号,通过微软验证完全正版。"&vbCr&vbCr&"序列号(OEM版无效,默认版本为XP VLK)","Windows XP序列号自动更换器","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!去微软验证吧!"

end if

 

if err <> 0 then

Wscript_.echo "替换失败!输入的CD-KEY 与当前的版本不匹配。"

Err.Clear

end if

 

Next

posted on 2008-03-05 17:26  Neo Devin  阅读(860)  评论(0编辑  收藏  举报