ON ERROR RESUME NEXT
Dim VOL_PROD_KEY
if Wscript.arguments.count<1 then
VOL_PROD_KEY=InputBox(“使用说明(OEM版无效):”&vbCr&vbCr&” 本脚本程序将修改当前 Windows 的序列号。请选择一个微软授权正版Windows 的序列号,复制并粘贴到下面空格中。”&vbCr&vbCr&”输入序列号:”,”Windows XP/2003 序列号更换工具”,”F4297-RCWJP-P482C-YY23Y-XH8W3″)
if VOL_PROD_KEY=”" then
Wscript.quit
end if
else
VOL_PROD_KEY = Wscript.arguments.Item(0)
end ifVOL_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 “您的 Windows CD-KEY 修改成功。请检查系统属性。”
end ifif err <> 0 then
Wscript.echo “修改失败!请检查输入的 CD-KEY 是否与当前 Windows 版本相匹配。”
Err.Clear
end ifNext
用记事本把上面的文件另存为***.vbs打开
输入新的序列号后点击确定即可
或是直接用本人做好了的.
http://www.namipan.com/d/e68ae591843f3589f33e9abd8f5011a11a373a8e48030000
七月 3rd, 2007
威儿唔哈
Posted in
Tags:

