<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[gOxiA=苏繁=SuFan's Blog]]></title> 
<link>http://goxia.maytide.net/index.php</link> 
<description><![CDATA[Microsoft MVP]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[gOxiA=苏繁=SuFan's Blog]]></copyright>
<item>
<link>http://goxia.maytide.net/read.php/1386.htm</link>
<title><![CDATA[[Scripts]分享一段有趣的 VBScript 让计算机讲出你想说的]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 03 Jun 2010 09:25:31 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/1386.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/ScriptsVBScript_F531/ScriptingGuy.jpg"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/ScriptsVBScript_F531/ScriptingGuy_thumb.jpg" border="0" alt="ScriptingGuy" title="ScriptingGuy" width="64" height="64" /></a> 使用 VBScript 让计算机讲出你想说的话</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 对 Scripts 和其他开发语言都并不熟悉，这段脚本程序也是从新浪微博上转过来的，转载率非常之高，到底是因为什么引人关注呢？！将下面这段脚本命令输入到记事本中，并存储为 vbs 扩展名，打开音箱或带上耳机，最后双击运行。</p><p><div class="code">CreateObject(&quot;SAPI.SpVoice&quot;).Speak &quot;I Love You&quot;</div></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Yeh，你将会听到一段计算机语音朗读出&ldquo;I Love You&rdquo;，是不是很有意思。简单的一段命令便能够让计算机讲出你想说的话，看来还是很有使用价值的。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这段脚本其实是使用了 Windows API 来调用了&ldquo;Windows 讲述人&rdquo;功能，Microsoft 为我们提供了强大的接口能够让我们利用 Windows 的功能实现更多的应用！而且利用脚本我们能高效的完成很多工作！</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Microsoft Scripts Center 提供了非常有价值的脚本学习资料，如果你有兴趣不妨学习学习！也许你也能利用 Windows 搞出来有意思的应用或提高你的工作效率。</p><br/>Tags - <a href="http://goxia.maytide.net/go.php/tags/scripts/" rel="tag">scripts</a> , <a href="http://goxia.maytide.net/go.php/tags/vbs/" rel="tag">vbs</a>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/1323.htm</link>
<title><![CDATA[[PowerShell] 正确使用 Windows PowerShell 执行服务器管理器操作]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Sat, 14 Nov 2009 09:07:51 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/1323.htm</guid> 
<description>
<![CDATA[ 
	<p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/powershell_logo.jpg" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/powershell_logo_thumb.jpg" border="0" alt="powershell_logo" title="powershell_logo" width="200" height="200" /></a> 正确使用 Windows PowerShell 执行服务器管理器操作</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最近在学习 Exchange 2010，其中会涉及到 Exchange 2010 的安装前准备工作，而这一内容主要包括了系统角色及功能的安装，虽然通过图形界面可以执行这些操作，但是如果使用命令行来执行自动化的批量安装岂不是更好。借此机会 <a href="http://goxia.maytide.net/" target="_blank">gOxiA</a> 可以好好学习学习 Windows Server 2008 R2 的管理命令。</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 大家应该知道，在 Windows Server 2008 R2 上，Windows PowerShell 的角色更加重要了，当我们再使用 ServerManagerCmd 来执行角色和功能安装时会看到一段系统提示，告知我们这一服务器管理命令将在下一个系统版本中被抛弃，取而代之的是 Windows PowerShell cmdlet，不可否认从目前相关的介绍来看 Windows PowerShell 是非常强大的，并且已经有很多微软产品开始支持基于 Windows PowerShell 的管理。看来大势已定，不想落后就必须学习和了解 Windows PowerShell！</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 其实，gOxiA 对 Windows PowerShell 了解甚少，看到那些涉及到编程语言的字符我就害怕（编程菜鸟，完全不懂的级别），这不今天就出了丑！从相关帮助中了解到，在 Windows PowerShell 下可以使用 <span style="background-color: #ffff00">Get-WindowsFeature</span>、<span style="background-color: #ffff00">Add-WindowsFeature</span> 和 <span style="background-color: #ffff00">Remove-WindowsFeature</span> 来管理服务器的角色和功能，出于之前对 Windows PowerShell 的简单认识，于是找到了附件中的 Windows PowerShell 程序并启动了它。</p><p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/WindowsPowerShell.png" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/WindowsPowerShell_thumb.png" border="0" alt="WindowsPowerShell" title="WindowsPowerShell" width="411" height="460" /></a> </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在打开的 Windows PowerShell 环境下，键入了 Get-WindowsFeature，问题出来了！给我反馈了一大堆的红色错误信息，很明显 Windows PowerShell 并未识别这个命令。如下图所示：</p><p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/ps_module_error.png" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/ps_module_error_thumb.png" border="0" alt="ps_module_error" title="ps_module_error" width="644" height="122" /></a>&nbsp;</p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 查阅了 TechNet 资源库才了解到，如果通过 Windows PowerShell 来执行服务器管理器的操作，必须加载其对应的模块 &mdash; ServerManager，我们可以在 Windows PowerShell 环境下执行&ldquo;<span style="background-color: #ffff00">Get-Module</span>&rdquo;获取当前系统中的模块。gOxiA 的个人理解是 Windows PowerShell 是一个功能强大的环境，除了内置的命令和支持以外，我们还可以通过其他产品本身提供的 Windows PowerShell 模块，为其提供在 Windows PowerShell 环境下对该产品的管理支持。比如 Exchange Server，就在其程序组中提供了一个 PoweShell 的快捷方式，通过该程序打开的 PowerShell 环境将可以直接支持 Exchange Server。</p><p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/getmodule.png" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/getmodule_thumb.png" border="0" alt="get-module" title="get-module" width="644" height="157" /></a> </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 既然如此，那么在 Windows Server 2008 R2 中应该同样也提供了一个与之类似的快捷方式，原来在&ldquo;管理工具&rdquo;程序组中确实提供了一个 PowerShell 快捷方式，名为：&ldquo;Windows PowerShell Modules&rdquo;。直接启动这个程序，便可以在 Windows PowerShell 环境下执行服务器管理器操作。</p><p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/WindowsPowerShellModules.png" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/WindowsPowerShellModules_thumb.png" border="0" alt="WindowsPowerShellModules" title="WindowsPowerShellModules" width="333" height="484" /></a> </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 前面已经讲过，只要 Windows PowerShell 加载对应的模块，即可以通过 Windows PowerShell 执行相关的操作。那么我们在默认 Windows PowerShell 环境下只需要执行&ldquo;<span style="background-color: #ffff00">Import-Module ModuleName</span>&rdquo;即可加载相关的模块。如下图所示：</p><p><a href="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/importmodule_servermanager.png" target="_blank"><img style="display: inline; border: 0px" src="http://goxia.maytide.net/ftpupfiles/PowerShellWindowsPowerShell_F0CF/importmodule_servermanager_thumb.png" border="0" alt="import-module_servermanager" title="import-module_servermanager" width="644" height="483" /></a></p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 最后，需要注意的是当重新进入 Windows PowerShell 后需要重新加载需要使用的模块。关于 PowerShell 的使用 gOxiA 也在逐步进行学习和了解，希望日后能有更大的收获！ </p><br/>Tags - <a href="http://goxia.maytide.net/go.php/tags/microsoft/" rel="tag">microsoft</a> , <a href="http://goxia.maytide.net/go.php/tags/windows/" rel="tag">windows</a> , <a href="http://goxia.maytide.net/go.php/tags/powershell/" rel="tag">powershell</a> , <a href="http://goxia.maytide.net/go.php/tags/servermanager/" rel="tag">servermanager</a>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/169.htm</link>
<title><![CDATA[HTA Application 的基本特性]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Sat, 09 Jun 2007 02:12:44 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/169.htm</guid> 
<description>
<![CDATA[ 
	<p>      节选自MVP友人碎片的一篇Blog：<a href="http://www.kernelmode.com.cn/article.asp?id=5">终极改变：内嵌脚本到一个GUI界面</a>。为了使脚本变得更加人性化、更具交互式那么HTA是最佳的选择，脚本的学习和应用对ITPro来说是至关重要的，其好处我就不过多阐述。</p><p>      节选碎片的这片文章中“HTA Application 的基本特性”部分主要是计划自己写个imagex的操作脚本并集成到我自己个性化过的VistaPE中，这样方便我周围的一些朋友是用VistaPE来备份或恢复系统是用。</p><p>      其实本人对脚本的编程实属菜鸟，工作中涉及到的一些脚本也都是从微软脚本中心找到修改的，个人检讨应该开始重点学习脚本的编程了……</p><p>      HTA Application 的基本特性：<br/>............<br/>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/175.htm</link>
<title><![CDATA[将用户添加到本地Windows管理员组]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Mon, 04 Jun 2007 04:02:26 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/175.htm</guid> 
<description>
<![CDATA[ 
	<p><b>支持平台</b></p><table class="dataTable" id="EMB" cellspacing="0" cellpadding="0"><thead><tr class="stdHeader" valign="top"><td id="colEOB" width="35%">Windows XP</td><td id="colESB" style="BORDER-RIGHT: #cccccc 1px solid" width="65%">是</td></tr></thead><tbody><tr class="record" valign="top"><td><p class="lastInCell">Windows Server 2003</p></td><td style="BORDER-RIGHT: #cccccc 1px solid"><p class="lastInCell"><b>是</b></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell">Windows 2000</p></td><td style="BORDER-RIGHT: #cccccc 1px solid"><p class="lastInCell"><b>是</b></p></td></tr><tr class="record" valign="top"><td><p class="lastInCell">Windows NT 4.0</p></td><td style="BORDER-RIGHT: #cccccc 1px solid"><p class="lastInCell"><b>是，需要安装</b><a href="http://www.microsoft.com/windows2000/server/evaluation/news/bulletins/adextension.asp">Active Directory Client Extensions</a><b /></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell">Windows 98</p></td><td style="BORDER-RIGHT: #cccccc 1px solid"><p class="lastInCell"><b>是，需要安装</b><a href="http://www.microsoft.com/windows2000/server/evaluation/news/bulletins/adextension.asp">Active Directory Client Extensions</a><b /></p></td></tr></tbody></table><div class="dataTableBottomMargin"></div><p><b>脚本代码</b></p><pre class="codeSample"><div class="code">strComputer = &quot;MyComputer&quot;<br/>Set objGroup = GetObject(&quot;WinNT://&quot; &amp; strComputer &amp; &quot;/Administrators,group&quot;)<br/>Set objUser = GetObject(&quot;WinNT://&quot; &amp; strComputer &amp; &quot;/kenmyer,user&quot;)<br/>objGroup.Add(objUser.ADsPath)</div><br/></pre>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/368.htm</link>
<title><![CDATA[使用脚本实现登录时的Num Lock 状态]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 24 Aug 2006 00:55:43 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/368.htm</guid> 
<description>
<![CDATA[ 
	<p>      通常我们为了实现数字键盘打开都会编辑注册表，对于初手要记住老长的键位确实够难的，所以我们可以通过脚本来实现此要求，编写的脚本放到启动项或同过组策略自动运行即可。不过我怎么感觉这样很麻烦，呵呵！总之微软既然为大家提供了此HOWTO我想还是应该学习利用一下的。脚本内容如下：</p><p><div class="code">set WshShell = CreateObject(&quot;WScript.Shell&quot;)<br />WshShell.SendKeys &quot;&#123;NUMLOCK&#125;&quot;</div></p><p>保存为numlock.vbs即可！</p><p>原文地址：<a href="http://support.microsoft.com/kb/314879/zh-cn">http://support.microsoft.com/kb/314879/zh-cn</a></p>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/837.htm</link>
<title><![CDATA[通过脚本察看当前TCP的连接数目]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 27 Jul 2006 08:57:51 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/837.htm</guid> 
<description>
<![CDATA[ 
	<p>在网上找了个脚本可以查询到当前TCP的连接数目，非常有用哦！</p><p><div class="code">strComputer = &quot;.&quot;<br />Set objWMIService = GetObject(&quot;winmgmts:\\&quot; &amp; strComputer &amp; &quot;\root\cimv2&quot;)<br />Set objNetworkSettings = objWMIService.Get(&quot;Win32_NetworkAdapterConfiguration&quot;)<br />Wscript.Echo &quot;TCP连接数: &quot; &amp; objNetworkSettings.SetTCPNumConnections</div></p>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/838.htm</link>
<title><![CDATA[通过VBS脚本提取IUSR和IWAM帐户的密码]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 29 Jun 2006 09:25:37 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/838.htm</guid> 
<description>
<![CDATA[ 
	<p><div class="code"><font size=\"2\"><font face=\"Courier New\">Dim IIsObject<br />Set IIsObject = GetObject (&quot;IIS://localhost/w3svc&quot;)<br />WScript.Echo &quot;AnonymousUserName = &quot; &amp; IIsObject.Get(&quot;AnonymousUserName&quot;) &amp; vbCrlf &amp; _ <br />&quot;AnonymousUserPass = &quot; &amp; IIsObject.Get(&quot;AnonymousUserPass&quot;) &amp;vbCrlf &amp;vbCrlf &amp;_ <br />&quot;WAMUserName = &quot; &amp; IIsObject.Get(&quot;WAMUserName&quot;) &amp; vbCrlf &amp; _<br />&quot;WAMUserPass = &quot; &amp; IIsObject.Get(&quot;WAMUserPass&quot;) <br /></font><font face=\"courier\">Set IIsObject = Nothing</div></font></font></p>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/839.htm</link>
<title><![CDATA[更改 DNS 区域类型]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 30 Mar 2006 10:53:05 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/839.htm</guid> 
<description>
<![CDATA[ 
	<p>本文摘自：<a href="http://www.microsoft.com/china/technet/community/scriptcenter/network/scrnet139.mspx">http://www.microsoft.com/china/technet/community/scriptcenter/network/scrnet139.mspx</a><br/>............<br/>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/877.htm</link>
<title><![CDATA[创建名称服务器 DNS 记录]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Thu, 30 Mar 2006 10:51:20 +0000</pubDate> 
<guid>http://goxia.maytide.net/read.php/877.htm</guid> 
<description>
<![CDATA[ 
	<table border="0" cellspacing="0" cellpadding="0" width="100%"><tbody><tr><td valign="top"><span><p>本文摘自：<a href="http://www.microsoft.com/china/technet/community/scriptcenter/network/scrnet153.mspx"></a><a href="http://www.microsoft.com/china/technet/community/scriptcenter/network/scrnet153.mspx" target="_blank">http://www.microsoft.com/china/technet/community/scriptcenter/network/scrnet153.mspx</a></p><p><strong><br />描述</strong></p><p>在 DNS 服务器上创建名称服务器 (NS) 记录。</p><p>有关在这段代码中使用的 CreateInstanceFromPropertyData 方法的更多信息，请单击<a href="http://msdn.microsoft.com/library/en-us/dns/dns/microsoftdns_nstype_createinstancefrompropertydata.asp">此处</a>。</p><p><strong><br />支持平台</strong></p><table border="0" cellspacing="0" cellpadding="0" class="dataTable" id="ENB"><thead></thead><tbody><tr class="record" valign="top"><td><p class="lastInCell"><strong>Windows Server 2003</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是</strong></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell"><strong>Windows XP</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>否（然而，可以在 Windows XP 计算机上对远程 DNS 服务器运行脚本）</strong></p></td></tr><tr class="record" valign="top"><td><p class="lastInCell"><strong>Windows 2000</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>是，需要安装 DNS WMI 提供程序</strong></p></td></tr><tr class="evenRecord" valign="top"><td><p class="lastInCell"><strong>Windows NT 4.0</strong></p></td><td style="border-right: #cccccc 1px solid"><p class="lastInCell"><strong>否</strong></p></td></tr></tbody></table><p><br /><strong>脚本代码<br /></strong>strDNSServer = &quot;atl-dc-03.fabrikam.com&quot;<br />strContainer = &quot;fabrikam.com&quot;<br />strOwner = &quot;atl-srv-01.fabrikam.com&quot;<br />intRecordClass = 1<br />intTTL = 600<br />strNSHost = &quot;nameserver.fabrikam.com&quot;<br />strComputer = &quot;.&quot;<br />Set objWMIService = GetObject(&quot;winmgmts:&#92;&#92;&quot; &amp; strComputer &amp; &quot;&#92;root&#92;MicrosoftDNS&quot;)<br />Set objItem = objWMIService.Get(&quot;MicrosoftDNS_NSType&quot;)<br />&nbsp; &nbsp;errResult = objItem.CreateInstanceFromPropertyData _<br />&nbsp; &nbsp; &nbsp; &nbsp;(strDNSServer, strContainer, strOwner, intRecordClass, intTTL, strNSHost)</p></span></td></tr></tbody></table>
]]>
</description>
</item><item>
<link>http://goxia.maytide.net/read.php/876.htm</link>
<title><![CDATA[修改系统安装序列号]]></title> 
<author>gOxiA &lt;goxia@live.cn&gt;</author>
<category><![CDATA[PowerShell &amp; Scripts]]></category>
<pubDate>Sat, 30 Jul 2005 04:47:20 +0000</pubDate> 
<guid>http://goxia.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>