<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan Blog]]></title> 
<link>https://maytide.net/index.php</link> 
<description><![CDATA[gOxiA,苏繁,sufan,Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan Blog]]></copyright>
<item>
<link>https://maytide.net/read.php/876.htm</link>
<title><![CDATA[修改系统安装序列号]]></title> 
<author>gOxiA &lt;sufan_cn@msn.com&gt;</author>
<category><![CDATA[PowerShell 和脚本]]></category>
<pubDate>Sat, 30 Jul 2005 04:47:20 +0000</pubDate> 
<guid>https://maytide.net/read.php/876.htm</guid> 
<description>
<![CDATA[ 
	ON ERROR RESUME NEXT <p></p><p>Dim VOL_PROD_KEY<br />if Wscript.arguments.count&lt;1 then<br />&nbsp;&nbsp; VOL_PROD_KEY=InputBox(&quot;换号脚本&quot;&amp;vbCr&amp;vbCr&amp;&quot;&nbsp;&nbsp;&nbsp; 本程序将自动替换你当前 Windows 的序列号,通过微软验证完全正版。&quot;&amp;vbCr&amp;vbCr&amp;&quot;序列号(OEM版无效,默认版本为 XP VLK)：&quot;,&quot;Windows XP序列号自动更换器&quot;,&quot;XXXXX-XXXXX-XXXXX-XXXXX-XXXXX&quot;)<br />&nbsp;&nbsp; if VOL_PROD_KEY=&quot;&quot; then<br />&nbsp;&nbsp;&nbsp;&nbsp; Wscript.quit<br />&nbsp;&nbsp; end if<br />else<br />&nbsp;&nbsp; VOL_PROD_KEY = Wscript.arguments.Item(0)<br />end if</p><p>VOL_PROD_KEY = Replace(VOL_PROD_KEY,&quot;-&quot;,&quot;&quot;) 'remove hyphens if any</p><p>for each Obj in GetObject(&quot;winmgmts:&#123; impersonationLevel=impersonate &#125;&quot;).InstancesOf (&quot;win32_WindowsProductActivation&quot;)</p><p>&nbsp;&nbsp; result = Obj.SetProductKey (VOL_PROD_KEY)</p><p>&nbsp;&nbsp; if err = 0 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wscript.echo &quot;完成更换，请重新进行正版验证&quot;<br />&nbsp;&nbsp; end if</p><p>&nbsp;&nbsp; if err &lt;&gt; 0 then<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wscript.echo &quot;替换失败！输入的 CD-KEY 与当前的版本不匹配。&quot;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Err.Clear<br />&nbsp;&nbsp; end if</p><p>Next</p>
]]>
</description>
</item>
</channel>
</rss>