{"id":1118,"date":"2009-10-05T00:28:45","date_gmt":"2009-10-04T16:28:45","guid":{"rendered":"http:\/\/nan.im\/blog\/?p=1118"},"modified":"2009-10-05T00:28:45","modified_gmt":"2009-10-04T16:28:45","slug":"%e3%80%90winxp%e3%80%91%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/nan.im\/blog\/1118","title":{"rendered":"\u3010WinXP\u3011\u4f7f\u7528 vbs \u811a\u672c\u5feb\u901f\u66ff\u6362\u4fee\u6539 WinXP \u5e8f\u5217\u53f7"},"content":{"rendered":"<p>\u4e0d\u9700\u8981\u91cd\u88c5\u7cfb\u7edf\uff0c\u4f7f\u7528 vbs \u811a\u672c\u7684\u4e00\u4e9b\u5185\u7f6e\u65b9\u6cd5\u53ef\u4ee5\u66ff\u6362\u4fee\u6539\u5df2\u7ecf\u5b89\u88c5\u7684 Windows XP \u5e8f\u5217\u53f7\u4ee5\u901a\u8fc7\u5fae\u8f6f\u6b63\u7248\u9a8c\u8bc1\u3002\u7531\u4e8e\u7f51\u8def\u4e0a\u6d41\u4f20\u7684\u5927\u91cf WinXP \u5747\u6346\u7ed1\u4e86\u6bd4\u8f83\u65e7\u7684 VLKs \u5e8f\u5217\u53f7\uff0c\u800c\u8fd9\u4e9b\u5e8f\u5217\u53f7\u7531\u4e8e\u5927\u91cf\u4f7f\u7528\u6216\u8fc7\u671f\u7b49\u56e0\u7d20\u5bfc\u81f4\u5fae\u8f6f\u5c4f\u853d\u6216\u505c\u6b62\u4e86\u8fd9\u4e9b\u5e8f\u5217\u53f7\uff0c\u4ece\u800c\u4f7f\u5b89\u88c5\u8fd9\u4e9b WinXP \u7684\u7528\u6237\u5728\u8bbf\u95ee\u5fae\u8f6f\u6b63\u7248\u9a8c\u8bc1\u65f6\u5931\u8d25\u5bfc\u81f4\u65e0\u6cd5\u5b89\u88c5\u9700\u8981\u6b63\u7248\u9a8c\u8bc1\u7684\u7a0b\u5e8f\uff08\u5982\uff1a<a href=\"http:\/\/www.microsoft.com\/windows\/windowsmedia\/\">Windows Media Player<\/a> \u5a92\u4f53\u64ad\u653e\u3001<a href=\"http:\/\/www.microsoft.com\/Security_essentials\/\">Microsoft Security Essentials<\/a> \u5b89\u5168\u5fc5\u5907\u3001\u7b49\u7b49\u9700\u8981\u6b63\u7248\u9a8c\u8bc1\u7684\u514d\u8d39\u7a0b\u5e8f\uff09\u800c\u5982\u679c\u4e3a\u4e86\u4fee\u6539\u5b89\u88c5\u5e8f\u5217\u53f7\u800c\u91cd\u88c5\u7cfb\u7edf\u6709\u70b9\u5c0f\u9898\u5927\u505a\uff0c\u8fd9\u91cc\u9644\u4e0a vbs \u4ee3\u7801\u5e2e\u52a9\u4f60\u4fee\u6539\u5df2\u7ecf\u5b89\u88c5\u7684 WinXP \u5e8f\u5217\u53f7\u3002<!--more--><\/p>\n<p>\u8fd9\u91cc\u4f7f\u7528 Visual Basic Script \uff08VBS\uff09\u811a\u672c\u901a\u8fc7 WinXP \u5185\u7f6e Windows Based Script host \u7684\u4e00\u4e9b\u65b9\u6cd5\u8fbe\u5230\u66ff\u6362\u5e8f\u5217\u53f7\u7684\u76ee\u7684\uff0c\u5f53\u7136\u7f51\u8def\u4e0a\u6b64\u7c7b\u5de5\u5177\u5f88\u591a\uff0c\u8fd9\u91cc\u53ea\u662f\u6700\u4e3a\u65b9\u4fbf\u5feb\u6377\u7684\u65b9\u6cd5\u4e4b\u4e00\uff1a<\/p>\n<pre lang=\"vb\" line=\"1\">\nON ERROR RESUME NEXT\n\nDim VOL_PROD_KEY\nif Wscript.arguments.count<1 then\n\tVOL_PROD_KEY=InputBox(\"\u652f\u6301 WinXP VOL \u7248\u672c\",\"\u66ff\u6362\u5e8f\u5217\u53f7\",\"00000-00000-00000-00000-00000\")\n\t\t'\u5b9a\u4e49\u4e00\u4e2a\u5e26\u6309\u94ae\u7684\u8f93\u5165\u6846\u7528\u6765\u4ea4\u4e92\n\tif VOL_PROD_KEY=\"\" then\n\t\tWscript.quit\n\tend if\nelse\n\tVOL_PROD_KEY = Wscript.arguments.Item(0)\nend if\n\nVOL_PROD_KEY = Replace(VOL_PROD_KEY,\"-\",\"\")      '\u8fc7\u6ee4\u5e8f\u5217\u53f7\u4e2d\u95f4\u7684\u8fde\u5b57\u7b26\n\nfor each Obj in GetObject(\"winmgmts:{impersonationLevel=impersonate}\").InstancesOf (\"win32_WindowsProductActivation\")\n\n\tresult = Obj.SetProductKey (VOL_PROD_KEY)\n\n\tif err = 0 then\n\t\tWscript.echo \"\u66ff\u6362\u6210\u529f\uff01\u53bb\u5fae\u8f6f\u7f51\u7ad9\u9a8c\u8bc1\u5427\uff01\"\n\tend if\n\n\tif err <> 0 then\n\t\tWscript.echo \"\u66ff\u6362\u5931\u8d25\uff01\u5f53\u524d\u7cfb\u7edf\u7248\u672c\u4e0d\u7b26\uff01\"\n\t\tErr.Clear\n\tend if\nNext\n<\/pre>\n<p>\u5c06\u4ee5\u4e0a\u5185\u5bb9\u4fdd\u5b58\u4e3a slmgr.vbs \u6587\u4ef6\u7136\u540e\u76f4\u63a5\u5728 WinXP \u4e0b\u53cc\u51fb\u5373\u53ef\uff0c\u4ee3\u7801\u4e2d 00000-00000 \u4f4d\u7f6e\u53ef\u4ee5\u9884\u5148\u653e\u7f6e\u4f60\u7684 VLK \u5e8f\u5217\u53f7\u3002\u5173\u4e8e\u5982\u4f55\u83b7\u53d6\u4e00\u4e2a\u6709\u6548\u7684 WinXP \u5e8f\u5217\u53f7\u53ef\u5c1d\u8bd5\u641c\u7d22\u201c<a href=\"http:\/\/www.google.com\/search?q=RPWBY\">RPWBY<\/a>\u201d\u76f8\u4fe1\u4f1a\u6709\u6240\u6536\u83b7\u3002\u9700\u8981\u8865\u5145\u7684\u662f\u63a8\u8350\u4f7f\u7528 VOL \u7248\u7684 WinXP \u5b89\u88c5\u955c\u50cf\u6765\u5b89\u88c5\u7cfb\u7edf\uff0c\u8fd9\u6837\u8f93\u5165\u76f8\u5173\u7684 vlk \u5e8f\u5217\u53f7\u4e4b\u540e\u53ef\u4ee5\u505a\u5230\u514d\u6fc0\u6d3b\uff0c\u5982\u679c\u83b7\u53d6\u539f\u7248 WinXP \u5149\u76d8\u955c\u50cf\u53ef\u8bbf\u95ee\u201c<a href=\"http:\/\/nan.im\/blog\/37.html\">\u539f\u7248 WinXP \u83b7\u53d6<\/a>\u201d\u8fd9\u7bc7\u6587\u7ae0\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u7cfb\u7edf\u662f Win7 \u6216\u8005 Vista \u5219\u53ef\u4ee5\u76f4\u63a5\u5728\u7ba1\u7406\u5458\u547d\u4ee4\u884c\u91cc\u9762\u8f93\u5165\u8bf8\u5982 slmgr.vbs -ipk 00000-00000-00000 \u7684\u547d\u4ee4\u76f4\u63a5\u4fee\u6539\u5e8f\u5217\u53f7\uff0c\u5173\u4e8e slmgr.vbs \u7684\u66f4\u591a\u7528\u6cd5\u53ef\u4f7f\u7528 slmgr.vbs \u7684\u65e0\u53c2\u6570\u547d\u4ee4\u83b7\u53d6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0d\u9700\u8981\u91cd\u88c5\u7cfb\u7edf\uff0c\u4f7f\u7528 vbs \u811a\u672c\u7684\u4e00\u4e9b\u5185\u7f6e\u65b9\u6cd5\u53ef\u4ee5\u66ff\u6362\u4fee\u6539\u5df2\u7ecf\u5b89\u88c5\u7684 Windows XP \u5e8f\u5217\u53f7\u4ee5\u901a\u8fc7\u5fae\u8f6f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[20,84,107,98],"class_list":["post-1118","post","type-post","status-publish","format-standard","hentry","category-good","tag-code","tag-vbs","tag-winxp","tag-windows"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":6}},"_links":{"self":[{"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts\/1118","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/comments?post=1118"}],"version-history":[{"count":0,"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/posts\/1118\/revisions"}],"wp:attachment":[{"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/media?parent=1118"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/categories?post=1118"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nan.im\/blog\/wp-json\/wp\/v2\/tags?post=1118"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}