<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[UMU Corporation]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[冰心魔莲圣小开、鹰菌炎刀七鹰圣、鹰鸣神物九世帅、九美鹰胸十载裤、天下无敌泥巴娃、破落个烂命晕到死ProgmanEx]]></description>
<link>http://hi.baidu.com/umu618</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[[UMU WSH 教程](37) WMI 的应用之监视进程创建]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/b896af0f208a5fe7ab6457d1.html]]></link>
        <description><![CDATA[
		
		<p><font size="3" face="宋体">　　很久之前，为了知道 VS IDE 在编译代码时，调用了什么程序和传递了什么参数，特地写了这个程序，现在开源吧……</font></p>
<p><font color="#38761d"><font size="3" face="宋体">// </font><font size="3" face="宋体">UMU@2009/11/11 公布</font></font></p>
<p><font color="#38761d" size="3" face="宋体">// monitor_process.js</font></p>
<p><font color="#9fc5e8" size="3" face="宋体">var strCScript = WScript.Path + &quot;</font><font color="#9fc5e8" size="3" face="宋体">\\cscript.exe</font><font color="#9fc5e8" size="3" face="宋体">&quot;;<br>
if (WScript.FullName != strCScript)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  new ActiveXObject(&quot;WScript.Shell&quot;).Run(strCScript + &quot; \&quot;&quot; + WScript.ScriptFullName + &quot;\&quot; //Nologo&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.Quit(-1);<br>
}</font></p>
<p><font color="#9fc5e8" size="3" face="宋体">var objWMI = GetObject(&quot;winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2&quot;);<br>
var ps = objWMI.ExecNotificationQuery( &quot;select * from __instancecreationevent within 1 where TargetInstance isa 'Win32_Process'&quot; );</font></p>
<p><font color="#9fc5e8" size="3" face="宋体">WScript.Echo(&quot;monitor_process.js by UMU @ 2009-03-16&quot;);<br>
WScript.Echo(&quot;Press Ctrl+C to quit&quot;);<br>
WScript.Echo(&quot;监视进程创建鹰……&quot;);<br>
WScript.Echo(&quot;&quot;);<br>
for (;;)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var p = ps.NextEvent();</font></p>
<p><font color="#9fc5e8" size="3" face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  try<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.StdOut.WriteLine(p.TargetInstance.Name);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.StdOut.WriteLine(p.TargetInstance.ExecutablePath);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.StdOut.WriteLine(p.TargetInstance.CommandLine);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  catch (ex)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.StdOut.WriteLine(ex);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  WScript.StdOut.WriteLine(&quot;&quot;);<br>
}</font></p>
<p><font color="#9fc5e8" size="3" face="宋体">delete ps;<br>
delete objWMI;<br>
</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/wsh%20%D7%A8%C0%B8">wsh 专栏</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/b896af0f208a5fe7ab6457d1.html#comment">查看评论</a>]]></description>
        <pubDate>2009年11月11日 星期三  11:48</pubDate>
        <category><![CDATA[wsh 专栏]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/b896af0f208a5fe7ab6457d1.html</guid>
</item>

<item>
        <title><![CDATA[通过 BT 种子 Hash 值从 BitComet 服务器上下载种子文件]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/28b96e382392c62997ddd8ed.html]]></link>
        <description><![CDATA[
		
		<p> </p>
<p>程序和代码下载：</p>
<p>UMU 的网盘 <a target="_blank" href="http://umu.ys168.com/">http://umu.ys168.com/</a>，目录 Tools\UMU_Script\GenBitCometTorrentURLviaHash.7z</p>
<p>或者在这里找：<a href="http://umu.download.csdn.net/">http://umu.download.csdn.net/</a></p>
<p>举例：</p>
<p>Hash 值为 <font color="#0066cc">004f50950256e66f128d528d0773fdefbc298cce <font color="#000000">的种子，可以通过以下链接下载：</font></font></p>
<p><a href="http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash=004f50950256e66f128d528d0773fdefbc298cce&amp;size=226920869&amp;key=44a2a41842ff15b47cf54c1470356b32cba26730">http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash=004f50950256e66f128d528d0773fdefbc298cce&amp;size=226920869&amp;key=44a2a41842ff15b47cf54c1470356b32cba26730</a></p>
<p>　　产生这个 URL 的关键是 key 的计算，上例中 <font color="#0066cc">key=44a2a41842ff15b47cf54c1470356b32cba26730</font>。UMU 做了一个 COM 对象，实现了 Hash 到 Key 的计算。</p>
<p>下面是脚本代码：</p>
<p><font color="#9fc5e8">Dim objUMU<br>
Dim strHash<br>
Dim strURL</font></p>
<p><font color="#9fc5e8">Set objUMU = CreateObject(&quot;UMU.UrlGenerator&quot;)</font></p>
<p><font color="#9fc5e8">strHash = InputBox(&quot;请输入 torrent 种子散列值：&quot;, &quot;输入 Hash 值&quot;, &quot;004f50950256e66f128d528d0773fdefbc298cce&quot;)<br>
If Len(strHash) &lt;&gt; 40 Then<br>
WScript.Quit<br>
End If</font></p>
<p><font color="#9fc5e8">strURL = &quot;</font><a href="http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash"><font color="#9fc5e8">http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash</font></a><font color="#9fc5e8">=&quot; &amp; strHash &amp; &quot;&amp;size=226920869&amp;key=&quot; &amp; objUMU.GenBitCometTorrentKey(strHash)<br>
Set objUMU = Nothing</font></p>
<p><font color="#9fc5e8">If Not IsEmpty(InputBox(&quot;生成的 URL 如下，按&ldquo;确定&rdquo;打开链接。&quot;, &quot;结果&quot;, strURL)) Then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Dim objWSH</font></p>
<p><font color="#9fc5e8">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Set objWSH = CreateObject(&quot;Wscript.Shell&quot;)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  objWSH.Run strURL<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Set objWSH = Nothing<br>
End If</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/wsh%20%D7%A8%C0%B8">wsh 专栏</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/28b96e382392c62997ddd8ed.html#comment">查看评论</a>]]></description>
        <pubDate>2009年10月15日 星期四  00:05</pubDate>
        <category><![CDATA[wsh 专栏]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/28b96e382392c62997ddd8ed.html</guid>
</item>

<item>
        <title><![CDATA[StartBrowser @ fbrowser.dll]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/796944c2d702243ce5dd3bc7.html]]></link>
        <description><![CDATA[
		
		<p>　　声明</p>
<p>BOOL StartBrowser(LPCWSTR lpszFolderPath, INT nStyle);</p>
<p>　　参数说明</p>
<p>nStyle</p>
<p>0&nbsp;&nbsp;&nbsp;  Icon 模式，类似 Shell32.exe 的&ldquo;程序&rdquo;界面</p>
<p>1&nbsp;&nbsp;&nbsp;  Report 模式，类似 File Explorer 的界面</p>
<p>2&nbsp;&nbsp;&nbsp;  Report 模式，打开 \My Documents</p>
<p>3&nbsp;&nbsp;&nbsp;  和 0 一样，其它值自己试看看</p>
<p>　　例子</p>
<p><font color="#6fa8dc" face="宋体">typedef BOOL (WINAPI * FPSTARTBROWSER)(LPCWSTR lpszFolderPath, INT nListViewStyle);<br>
FPSTARTBROWSER StartBrowser;</font></p>
<p><br>
<font color="#6fa8dc" face="宋体">HMODULE hModule;<br>
hModule = LoadLibraryW(L&quot;fbrowser.dll&quot;);<br>
if (NULL != hModule)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  StartBrowser = (FPSTARTBROWSER)GetProcAddressW(hModule, (LPCWSTR)10);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (NULL != StartBrowser)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (StartBrowser(L&quot;\\&quot;, 4))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  MSG msg;</font></p>
<p><font color="#6fa8dc" face="宋体">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  while (GetMessage(&amp;msg, NULL, 0, 0))<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  TranslateMessage(&amp;msg);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  DispatchMessage(&amp;msg);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  FreeLibrary(hModule);<br>
}</font></p>
<p>　　效果图</p>
<p align="center"><font color="#6fa8dc" face="宋体"><span><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/umu618/pic/item/4e9625dd5326d9f08c10292a.jpg"><br>
</span></font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/windows%20mobile%20%CE%B4%B9%E9%B5%B5%20api">windows mobile 未归档 api</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/796944c2d702243ce5dd3bc7.html#comment">查看评论</a>]]></description>
        <pubDate>2009年08月08日 星期六  15:56</pubDate>
        <category><![CDATA[windows mobile 未归档 api]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/796944c2d702243ce5dd3bc7.html</guid>
</item>

<item>
        <title><![CDATA[您用什么 Email 客户端？]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/9ee0861051447108213f2e94.html]]></link>
        <description><![CDATA[
		
		<p>　　现在全面移植到 Windows Server 2008 x64 了，以前习惯的 OE 已经变成 Windows Mail，用了几天，马上就熟悉了。</p>
<p>　　同时也适用了几天 Foxmail 6.5 正式版，惊讶的发现安装后居然有 112M，相比之下 Windows Mail 才 9M 的体积就可以满足我。不愧是 TX 旗下的产品，继承了 QQ 的优良传统。不知道 TX，会不会照着 TM，再推出一个 TMail……</p>
<p>　　除了体积大，Foxmail 的存储机制比 Windows Mail 和 Windows Live Mail 落后，Foxmail 使用一个文件存储一个邮件夹的方式，极易使个别文件过大；而后两者每个邮件保存成一个 .eml 文件，然后使用 Data Jet 引擎索引邮件。而且 Foxmail 常常无法退出，只能强行结束进程……于是……删除之……</p>
<p>　　总而言之，Foxmail 是和 OE 一个时代（等级）的产品。</p>
<p>　　但是微软已经决定放弃 Windows Mail，Windows 7 RTM 上已经没有了。因为有 Windows Live Mail，一样免费的，没必要搞两个，考虑到 <span>Windows Live Mail 升级比较快，UMU 决定用他了。目前版本是 v14，大概 30M。</span></p>
<p><span>　　个人一向偏爱微软的免费产品，所以排除从未使用过的 Outlook，推荐 <span>Windows Live Mail</span>，个人意见，仅供参考。</span></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%C5%FA%C5%D0">批判</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/9ee0861051447108213f2e94.html#comment">查看评论</a>]]></description>
        <pubDate>2009年07月09日 星期四  21:11</pubDate>
        <category><![CDATA[批判]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/9ee0861051447108213f2e94.html</guid>
</item>

<item>
        <title><![CDATA[完全免费的 Windows Server 系统，不需要序列号、不需要激活、更不需要破解]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/9f27d91b73aa6fddad6e75c4.html]]></link>
        <description><![CDATA[
		
		<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　答案是：Hyper-V Server 2008。</font></span></p>
<span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　这是 UMU 想出来并自己和托朋友尝试过可行的，但也许 UMU 不是最早想到的。</font></span></font></span></font></span></font></span></font></span></font></span></font></span></font></span></font></span></p>
</font></span>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　HVS2008 是基于 Windows Server 2008 Server Core x64 的<span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi- mso-ascii- mso-hansi-">虚拟机服务器系统，经过一些优化可以当作 WS2008 Server Core 来用，最重要的是它是</span>免费的。</font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　HVS2008 </font></span>要正常提供虚拟机服务，服务器 CPU 必须满足 3 个条件：x64、DEP (Data Execution Prevention)、HV (Hardware Virtualization)，但我们不需要虚拟机服务，所以只需要有 x64 CPU 就可以了。</font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　安装和优化：</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">1. 驱动要使用支持 Windows Server 2008 x64 的，至少要使用 Vista-64 的</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">2. 安装完系统，登录就会出现设置界面（蓝色命令行窗口）：</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"> 3) 网络设置 -- 配置好 IP、DNS 等<br>
 5) Windows Update 设置 -- 设为自动<br>
 6) 下载并安装更新 -- 立刻手动更新<br>
 7) 远程桌面 -- 启用(所有客户端)，虽然可以用 WinRM 管理，但有时候还是需要图形界面的。</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">3. 关闭下列服务，并设为手动启动：</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"> vmms<br>
 vhdsvc<br>
 nvspwmi&nbsp;&nbsp; // 这三个是虚拟机服务<br>
 RemoteRegistry // 远程注册表连接</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">参考命令行：</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font style="background-color: #000080" face="宋体">sc stop vmms<br>
sc stop vhdsvc<br>
sc stop nvspwmi<br>
sc stop RemoteRegistry</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font style="background-color: #000080" face="宋体">sc config vmms start= demand<br>
sc config vhdsvc start= demand<br>
sc config nvspwmi start= demand<br>
sc config RemoteRegistry start= demand</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">4. 打开 WinRM，方便管理，</font></span></font></span></font></span><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">输入：winrm qc，回答 y</font></span></font></span></font></span></p>
<p><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><br>
<span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体"><span style=" font-size: 12pt; mso-ascii-theme-font: minor-latin; mso-fareast- mso-fareast-theme-font: minor-fareast; mso-hansi-theme-font: minor-latin; mso-bidi- mso-bidi-theme-font: minor-bidi; mso-ansi- mso-fareast- mso-bidi-"><font face="宋体">　　HVS2008 适用范围：如果您想跑 .NET 程序或者 IIS7，那您就不能使用它了。它最适合的情况是您开发了一些系统服务（NT Service）类的应用，比如游戏服务端、聊天软件服务端，想发布到 Windows Server 上，但您又不愿意购买价格不菲的 Windows Server 系统。</font></span></font></span></font></span></font></span></font></span></font></span></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%CF%B5%CD%B3%B9%DC%C0%ED">系统管理</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/9f27d91b73aa6fddad6e75c4.html#comment">查看评论</a>]]></description>
        <pubDate>2009年04月17日 星期五  22:06</pubDate>
        <category><![CDATA[系统管理]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/9f27d91b73aa6fddad6e75c4.html</guid>
</item>

<item>
        <title><![CDATA[迅雷去广告插件]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/6538aa8b44a148779e2fb4de.html]]></link>
        <description><![CDATA[
		
		<p>　　迅雷插件似乎都是迅雷自己在开发的，没有公开开发文档，经过研究，发现迅雷插件是基于 COM 接口的 DLL。</p>
<p>　　研究的过程如下：</p>
<p>1. 用 exeScope 打开现有的迅雷插件，发现导出函数有 DllGetClassObject，这是 COM DLL 的特征；</p>
<p>2. 写一个 dummy COM DLL，把迅雷向自己（我们写的 COM DLL）查询的接口 IID 打印出来；</p>
<p>3. 给已知 IID 的接口写一些接口函数，参数随便写几个，然后在这些函数下断点，调试迅雷，在函数返回的时候，会看到迅雷的汇编代码，其中我们关心的是 call 指令之前有多少个 push，至于参数是什么意义，得自己多试试猜猜，也可以再配合一些逆向工程的技巧。或者直接逆向迅雷和现有的迅雷插件，不过这似乎是犯法的……</p>
<p>　　下载地址 1：<a href="http://umu.ys168.com/">http://umu.ys168.com/</a>，Tools\XunleiKillAdPlugin.7z。</p>
<p>　　下载地址 2：<a href="http://download.csdn.net/source/1230722">http://download.csdn.net/source/1230722</a></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%D7%F7%C6%B7%D5%B9%CA%BE">作品展示</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/6538aa8b44a148779e2fb4de.html#comment">查看评论</a>]]></description>
        <pubDate>2009年04月15日 星期三  21:21</pubDate>
        <category><![CDATA[作品展示]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/6538aa8b44a148779e2fb4de.html</guid>
</item>

<item>
        <title><![CDATA[[UMU WSH 教程](36) CAPICOM 对象入门]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/2c229616bd14c359f2de3254.html]]></link>
        <description><![CDATA[
		
		<p><a href="http://hi.baidu.com/umu618/blog/item/d6a2083b60d3f1e215cecbcc.html">[UMU WSH 教程](35) 管理 Windows 内置防火墙</a></p>
<p>　　脚本实现 Base64 编码、MD5 Hash 的代码在网上可以找到很多，这些代码都是按照&ldquo;算法&rdquo;写出来的，所以都很长……如果您不关心算法，只想使用的话，那么使用 COM 对象是最好的方法。</p>
<p>　　XP 后系统，%ProgramFiles%\Common Files\Microsoft Shared\CAPICOM\CapiCom.dll 提供了专门用于&ldquo;加密解密编码解码&rdquo;的 COM 对象，如果下面的例子代码提示无法创建对象，需要注册一下这个 CapiCom.dll。</p>
<p>　　例子一：</p>
<p><font color="#339966">// UMU @ 10:03 2009-04-14<br>
// [UMU WSH 教程](36) CAPICOM 对象<br>
// 36_CAPICOM_Base64.js</font></p>
<p><font color="#99ccff">var objCAPI = new ActiveXObject(&quot;CAPICOM.Utilities&quot;);<br>
var str = objCAPI.Base64Encode(&quot;UMU&quot;);<br>
WScript.Echo(&quot;编码后：&quot; + str);<br>
WScript.Echo(&quot;解码后：&quot; + objCAPI.Base64Decode(str));<br>
WScript.Echo(&quot;BinaryToHex(\&quot;小开\&quot;) = &quot; + objCAPI.BinaryToHex(&quot;小开&quot;));<br>
delete objCAPI;</font></p>
<p>　　例子二：</p>
<p><font color="#99ccff">&lt;?XML version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; ?&gt;<br>
&lt;!-- UMU @ 15:08 2009-4-14 --&gt;<br>
&lt;!-- 36_CAPICOM_HashedData.WSF --&gt;<br>
&lt;package&gt;<br>
&lt;job id=&quot;36_CAPICOM_HashedData&quot;&gt;</font></p>
<p><font color="#99ccff">&lt;object id=&quot;objCHD&quot; progid=&quot;CAPICOM.HashedData&quot; /&gt;<br>
&lt;reference object=&quot;CAPICOM.HashedData&quot; /&gt;</font></p>
<p><font color="#99ccff">&lt;script language=&quot;JScript&quot;&gt;<br>
&lt;![CDATA[<br>
objCHD.Algorithm = CAPICOM_HASH_ALGORITHM_SHA1;<br>
objCHD.Hash(&quot;UMU&quot;);<br>
WScript.Echo(&quot;SHA1 = &quot; + objCHD.Value);</font></p>
<p><font color="#99ccff">objCHD.Algorithm = CAPICOM_HASH_ALGORITHM_MD5;<br>
objCHD.Hash(&quot;UMU&quot;);<br>
WScript.Echo(&quot;MD5 = &quot; + objCHD.Value);<br>
]]&gt;<br>
&lt;/script&gt;</font></p>
<p><font color="#99ccff">&lt;/job&gt;<br>
&lt;/package&gt;</font></p>
<p>　　更高级的加密解密对象，请参考文章：<a target="_blank" href="http://www.codeproject.com/KB/mcpp/Security.aspx">Writing a C++ Program with the CAPICOM Component to Encrypt and Decrypt Files</a></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/wsh%20%D7%A8%C0%B8">wsh 专栏</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/2c229616bd14c359f2de3254.html#comment">查看评论</a>]]></description>
        <pubDate>2009年04月14日 星期二  19:48</pubDate>
        <category><![CDATA[wsh 专栏]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/2c229616bd14c359f2de3254.html</guid>
</item>

<item>
        <title><![CDATA[Winbolic Link 介绍 - 如何创建文件夹快捷方式？]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/3330b8dec6cbbb50ccbf1aef.html]]></link>
        <description><![CDATA[
		
		<p>　　Windows 2000 之后的资源管理器（Explorer）、IE 支持一种&ldquo;文件夹快捷方式&rdquo;，它本身是一个只读的文件夹，通过在这个文件夹下配置 desktop.ini 和 target.lnk，可以使其指向任意文件夹。这个功能可以用 Shell32.dll 中 CLSID ==<font color="#ff0000"> {0AFACED1-E828-11D1-9187-B532F1E9575D}</font> 的 COM 对象实现，但是微软没有提供现成的工具，搜索 Winbolic Link 可以找到一些用于创建这类&ldquo;文件夹快捷方式&rdquo;免费的工具。</p>
<p>　　手动创建的方法：</p>
<p>1. 创建一个文件夹叫 ShortcutFolder，并给它加上只读属性；</p>
<p>2. 在 ShortcutFolder 里放一个 desktop.ini，内容如下：</p>
<p><font color="#99ccff">[.ShellClassInfo]<br>
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}<br>
Flags=2</font></p>
<p>3. 创建一个目标文件夹的普通快捷方式，改名为 target（实质为 target.lnk），放在 ShortcutFolder 下，完成。</p>
<p>　　其中前两步可以改为一步：创建一个文件夹叫 ShortcutFolder.<font color="#ff0000">{0AFACED1-E828-11D1-9187-B532F1E9575D}</font>，并给它加上只读属性，但是名字中出现这么长的 GUID 字符串比较不好看。</p>
<p>　　注意这种方式创建出来的&ldquo;文件夹快捷方式&rdquo;只对资源管理器和IE 有效，在命令提示符下是原形毕露，和 Junction（Reparse Points）是不同的。</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/How%20To">How To</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/3330b8dec6cbbb50ccbf1aef.html#comment">查看评论</a>]]></description>
        <pubDate>2009年04月13日 星期一  17:06</pubDate>
        <category><![CDATA[How To]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/3330b8dec6cbbb50ccbf1aef.html</guid>
</item>

<item>
        <title><![CDATA[[UMU WSH 教程](35) 管理 Windows 内置防火墙]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/d6a2083b60d3f1e215cecbcc.html]]></link>
        <description><![CDATA[
		
		<p><a href="http://hi.baidu.com/umu618/blog/item/29d67d09884263a92eddd4d1.html" target="_blank"><font size="+0">[UMU WSH 教程](32) 访问剪贴板（2）</font></a></p>
<p><a href="http://hi.baidu.com/umu618/blog/item/c306b30ed966aee136d122af.html" target="_blank"><font size="+0">[UMU WSH 教程](33) 正则表达式</font></a></p>
<p><a href="http://hi.baidu.com/umu618/blog/item/99f2014673715e0e6b63e5d4.html" target="_blank"><font size="+0">[UMU WSH 教程](34) ScriptingUtils.DateTimeObject 对象</font></a></p>
<p>　　本文适用于 XP 后系统（包括 XP）。hnetcfg.dll 提供了管理 Windows 内置防火墙的对象：HNetCfg.HNetShare、HNetCfg.NATUPnP、HNetCfg.FwMgr、HNetCfg.FwOpenPort、HNetCfg.FwAuthorizedApplication。</p>
<p>　　参考 URL：</p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb736292(VS.85).aspx"><font size="+0">http://msdn.microsoft.com/en-us/library/bb736292(VS.85).aspx</font></a><br>
<a href="http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/windowsfirewall/"><font size="+0">http://www.activexperts.com/activmonitor/windowsmanagement/scripts/networking/windowsfirewall/</font></a></p>
<p>　　下面举几个例子：</p>
<p><font color="#339966">// UMU @ 2009-3-20 09:17<br>
// AddAllowedPort.js<br>
// 防火墙 - 例外 - 添加例外端口</font></p>
<p><font color="#99ccff">var NET_FW_IP_PROTOCOL_TCP = 6;<br>
var NET_FW_IP_PROTOCOL_UDP = 17;</font></p>
<p><font color="#99ccff">function WFW_AddAllowedPort(name, protocol, port, state)<br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var objFirewall = new ActiveXObject(&quot;HNetCfg.FwMgr&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var objProfile = objFirewall.LocalPolicy.CurrentProfile;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var objPort = new ActiveXObject(&quot;HNetCfg.FwOpenPort&quot;);</font></p>
<p><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  objPort.Name = name;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  objPort.Port = port;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  objPort.Protocol = protocol;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  objPort.Enabled = state;</font></p>
<p><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var colPorts = objProfile.GloballyOpenPorts;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  colPorts.Add(objPort);</font></p>
<p><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  delete colPorts;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  delete objPort;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  delete objProfile;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  delete objFirewall;<br>
}</font></p>
<p><font color="#99ccff">WFW_AddAllowedPort(&quot;UMU&quot;, NET_FW_IP_PROTOCOL_UDP, 618, true);</font></p>
<p><font color="#339966">// UMU @ 2009-3-23 15:51<br>
// AddAuthorizedApplication.js<br>
// 防火墙 - 例外 - 添加例外程序</font></p>
<p><font color="#99ccff">var objFirewall = new ActiveXObject(&quot;HNetCfg.FwMgr&quot;);<br>
var oProfile = objFirewall.LocalPolicy.CurrentProfile;<br>
var objAuthApp = new ActiveXObject(&quot;HNetCfg.FwAuthorizedApplication&quot;);<br>
objAuthApp.Name = &quot;notepad.exe&quot;;<br>
objAuthApp.IPVersion = 2;<br>
objAuthApp.ProcessImageFileName = &quot;C:\\Windows\\system32\\notepad.exe&quot;;<br>
objAuthApp.RemoteAddresses = &quot;*&quot;;<br>
objAuthApp.Scope = 0;<br>
objAuthApp.Enabled = true;</font></p>
<p><font color="#99ccff">var colApplications = oProfile.AuthorizedApplications;<br>
colApplications.Add(objAuthApp);</font></p>
<p><font color="#99ccff">delete objAuthApp;<br>
delete objFirewall;<br>
</font></p>
<p><font color="#339966">// UMU @ 2009-3-23 15:51<br>
// AllowInboundEchoRequest.js<br>
// 防火墙 - ICMP 设置 - 允许传入回显请求</font></p>
<p><font color="#99ccff">var objFirewall = new ActiveXObject(&quot;HNetCfg.FwMgr&quot;);<br>
var objProfile = objFirewall.LocalPolicy.CurrentProfile;<br>
objProfile.IcmpSettings.AllowInboundEchoRequest = true;<br>
delete objProfile;<br>
delete objFirewall;<br>
</font></p>
<p><font color="#339966">// UMU @ 2009-3-23 15:58<br>
// DisableFirewall.js<br>
// 防火墙 - 禁用防火墙</font></p>
<p><font color="#99ccff">var objFirewall = new ActiveXObject(&quot;HNetCfg.FwMgr&quot;);<br>
var objProfile = objFirewall.LocalPolicy.CurrentProfile;<br>
<font color="#339966">//objProfile.FirewallEnabled = true;</font><br>
objProfile.FirewallEnabled = false;<br>
delete objProfile;<br>
delete objFirewall;<br>
</font></p>
<p><font color="#339966">// UMU @ 2009-3-23 16:05<br>
// EnableRemoteDesktop.js<br>
// 防火墙 - 例外 - 启用远程桌面</font></p>
<p><font color="#99ccff">var NET_FW_SERVICE_FILE_AND_PRINT = 0;<br>
var NET_FW_SERVICE_UPNP = 1;<br>
var NET_FW_SERVICE_REMOTE_DESKTOP = 2;</font></p>
<p><font color="#99ccff">var NET_FW_SCOPE_ALL = 0;<br>
var NET_FW_SCOPE_LOCAL_SUBNET = 1;</font></p>
<p><font color="#99ccff">var objFwMgr = new ActiveXObject(&quot;HNetCfg.FwMgr&quot;);<br>
var objProfile = objFwMgr.LocalPolicy.CurrentProfile;<br>
var objService = objProfile.Services.Item(NET_FW_SERVICE_REMOTE_DESKTOP);<br>
objService.Enabled = true<br>
objService.RemoteAddresses = &quot;*&quot;<br>
<font color="#339966">//objService.Scope = NET_FW_SCOPE_ALL</font><br>
delete objService;<br>
delete objProfile;<br>
delete objFwMgr;<br>
</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/wsh%20%D7%A8%C0%B8">wsh 专栏</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/d6a2083b60d3f1e215cecbcc.html#comment">查看评论</a>]]></description>
        <pubDate>2009年03月23日 星期一  16:26</pubDate>
        <category><![CDATA[wsh 专栏]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/d6a2083b60d3f1e215cecbcc.html</guid>
</item>

<item>
        <title><![CDATA[研究 COM 组件注册信息的程序 RegSvrOverride]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/fd09e224859055064c088d2f.html]]></link>
        <description><![CDATA[
		
		<p>　　当您注册一个 COM 组件时，也许您想知道它到底往注册表里写了什么，思路有很多种，用注册表键重载的方式是比较简单的一种。RegSvrOverride 程序先把 HKEY_CLASSES_ROOT 重定向至 HKEY_CURRENT_CONFIG\TempRegSvr，然后注册 COM 组件，这样您就可以在 HKEY_CURRENT_CONFIG\TempRegSvr 下查看此 COM 组件的注册信息了。</p>
<p>　　原理请参考 API RegOverridePredefKey。</p>
<p>下载：<a target="_blank" href="http://umu.ys168.com/">UMU 的网盘</a>\Tools\CrackTools\RegSvrOverride.7z</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%D7%F7%C6%B7%D5%B9%CA%BE">作品展示</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/fd09e224859055064c088d2f.html#comment">查看评论</a>]]></description>
        <pubDate>2009年02月25日 星期三  21:58</pubDate>
        <category><![CDATA[作品展示]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/fd09e224859055064c088d2f.html</guid>
</item>

<item>
        <title><![CDATA[[UMU WSH 教程](34) ScriptingUtils.DateTimeObject 对象]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/99f2014673715e0e6b63e5d4.html]]></link>
        <description><![CDATA[
		
		<p>　　ScriptingUtils.DateTimeObject 对象比较不实用，只有一个 GetDateAndTime 方法，而且这个方法还是很简单的，完全可以用几句脚本实现。因为最近碰巧遇到，故在此提一下。</p>
<p><font color="#008080">// UMU @ 2009-02-13 19:53<br>
// [UMU WSH 教程](34) ScriptingUtils.DateTimeObject 对象<br>
// 43_DateTimeObject.js</font></p>
<p><font color="#99ccff">var objDTO = new ActiveXObject(&quot;ScriptingUtils.DateTimeObject&quot;);<br>
WScript.Echo(objDTO.GetDateAndTime(&quot;20090210111923.000000+480&quot;));<br>
delete objDTO;<br>
</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/wsh%20%D7%A8%C0%B8">wsh 专栏</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/99f2014673715e0e6b63e5d4.html#comment">查看评论</a>]]></description>
        <pubDate>2009年02月13日 星期五  20:51</pubDate>
        <category><![CDATA[wsh 专栏]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/99f2014673715e0e6b63e5d4.html</guid>
</item>

<item>
        <title><![CDATA[破解 Vbs2Exe]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/3700bd009a77e380e950cda2.html]]></link>
        <description><![CDATA[
		
		<p>　　Vbs2Exe 是一个可以把 VBS 脚本文件打包成 EXE 可执行文件的程序，搜索一下有很多结果，下面列出几个：</p>
<p><a target="_blank" href="http://www.enkeladress.com/files/vbs2exe4demo.exe">Vbs2Exe 4.0</a></p>
<p><a href="http://www.vbs2exe.com/">http://www.vbs2exe.com/</a></p>
<p><a class="l" target="_blank" href="http://www.downxia.com/downinfo/1414.html"><font size="4"><font color="#cc0033">VBS2EXE</font><font color="#551a8b"> V2.7 绿色特别版</font></font></a></p>
<p>　　这些 Vbs2Exe 程序不仅可以在一定范围内保护您的脚本源代码，还可以扩展脚本的功能，比如 <a href="http://www.xneat.com/">xNeat Inc.</a> 的 Vbs2Exe 增加了使脚本调用 Win API 的功能。</p>
<p>　　不过，正像 UMU 在《<a target="_blank" href="http://hi.baidu.com/umu618/blog/item/50289813ad97ac816438db40.html">[UMU WSH 教程](18) 脚本加密</a>》中说到的：&ldquo;那么解释型语言怎么保护代码呢？答案是不行&rdquo;、&ldquo;由于最后只能解码回宿主认识的语言，所以这种加密必须是可逆的，所以要破解是轻而易举的&rdquo;。</p>
<p>　　UMU 的程序（ScriptSnap）是使用了 COM Interface Hook 的方法，把 vbscript.dll / jscript.dll 提供的 IActiveScriptParse 接口的 ParseScriptText 方法给 Hook 了，所以可以获得源代码。</p>
<p>　　下载地址：<a href="http://download.csdn.net/source/1018872">http://download.csdn.net/source/1018872</a>，或 <a target="_blank" href="http://umu.ys168.com/">UMU 的网盘</a>，Tools\CrackTools\ScriptSnap.7z，如果网盘失效，请联系 MSN: <a href="mailto:umu618@msn.com">umu618@msn.com</a> 或 QQ: <a href="mailto:ExplorerEx@qq.com">ExplorerEx@qq.com</a>。</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%D7%F7%C6%B7%D5%B9%CA%BE">作品展示</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/3700bd009a77e380e950cda2.html#comment">查看评论</a>]]></description>
        <pubDate>2009年02月10日 星期二  20:32</pubDate>
        <category><![CDATA[作品展示]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/3700bd009a77e380e950cda2.html</guid>
</item>

<item>
        <title><![CDATA[IPv4 地址转换成相应的三十二位整型数]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/75333b4e4db6f9cdd1c86a8e.html]]></link>
        <description><![CDATA[
		
		<p>　　今天无意中看到百度知道上有人问这个问题（<a target="_blank" href="http://zhidao.baidu.com/question/56775275.html">C#怎么把IP转换成长整型??</a>），结果一个错误的答案竟然被评为最佳……然后我继续找了一下，发现很多人都不会写代码，考虑得很不严谨。UMU 被迫把这个简单到几乎不能叫它&ldquo;算法题&rdquo;的问题在此发表一下。代码是 C# 写的。</p>
<p>　　0. 第 5 行，TryParse 可以保证输入非法 IP 时程序不会异常，很多人没考虑这点，失败！</p>
<p>　　1. 第 8 行，IPAddress.Address 已经被弃用，UMU 都把警告当成错误，所以不用它。但很多人无所谓，很失败！</p>
<p>　　2. 第 10 行，很多人不检查 AddressFamily，如果传入的是 IPv6 地址，他们还继续 Address，失败中的失败！</p>
<p>　　3. IP 地址使用的是网络字节序，也就是大尾字节序，应该转为主机字节序，x86 下是小尾字节序，这样方便做一些额外的加工。</p>
<p>　　4. 如果您希望把整型数存入数据库，那应该直接用下列的代码，返回值类型是 Int32，因为有的数据库不支持 Unsigned，必须用更大长度的类型来存放，浪费了；如果您希望能进行 IP 大小比较，比如 128.0.0.0 &gt; 127.0.0.2 &gt; 127.0.0.1，则要把返回值改为 UInt32，否则 128.0.0.0 将变成负数，所以会 128.0.0.0 &lt; 127.0.0.2。</p>
<p align="center" forimg="1"><img class="blogimg" border="0" small="0" src="http://hiphotos.baidu.com/umu618/pic/item/35f370cba7504102be09e60a.jpg"></p>
<p align="left" forimg="1">附 JScript 代码：</p>
<p align="left" forimg="1"><font color="#99ccff"><a target="_blank" href="http://hi.baidu.com/umu618"><font color="#99ccff">function IPv4StringToInt32(strIP)</font></a><br>
{<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var strArrayPart = strIP.split(&quot;.&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var nCountOfPart = strArrayPart.length;</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (nCountOfPart == 0 || nCountOfPart &gt; 4)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var nPart = new Array(0, 0, 0, 0);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  var i;</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  for (i = 0; i &lt; nCountOfPart - 1; ++i)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  nPart[i] = parseInt(strArrayPart[i]);</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (nPart[i] &lt; 0 || nPart[i] &gt; 255)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  nPart[3] = parseInt(strArrayPart[i]);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  if (nPart[3] &lt; 0 || nPart[3] &gt; 255)<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return 0;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  }</font></p>
<p align="left" forimg="1"><font color="#99ccff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  return nPart[0] &lt;&lt; 24 | nPart[1] &lt;&lt; 16 | nPart[2] &lt;&lt; 8 | nPart[3];<br>
}<br>
</font></p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%CB%E3%B7%A8%CC%E2">算法题</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/75333b4e4db6f9cdd1c86a8e.html#comment">查看评论</a>]]></description>
        <pubDate>2008年12月19日 星期五  11:12</pubDate>
        <category><![CDATA[算法题]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/75333b4e4db6f9cdd1c86a8e.html</guid>
</item>

<item>
        <title><![CDATA[破解“考典分级精解－监理工程师合集软件”的时间限制]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/b896af0fed8a92eaab6457d6.html]]></link>
        <description><![CDATA[
		
		<p>　　-1. 如果已经过期，运行下列命令，删除注册表残留：</p>
<p><font color="#99ccff">reg delete &quot;HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server&quot; /v TSAppCompat /f<br>
reg delete &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer&quot; /v 1xwyqbcd /f<br>
reg delete &quot;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer&quot; /v dcbqywx1 /f<br>
reg delete &quot;HKEY_LOCAL_MACHINE\SOFTWARE\nsky&quot; /va /f</font></p>
<p>　　0. 安装后先不要运行，先备份安装目录下的 trjdcbqywx1hj.dat，复制为 trjdcbqywx1hj.dat.bak；</p>
<p>　　1. 资源管理器打开 %SystemRoot%\system32 目录，按&ldquo;修改日期&rdquo;排列，并把滚动条拉到底；</p>
<p>　　2. 运行此软件，注意看 %SystemRoot%\system32 目录，会出现一个新的 .dat 文件，大小是 748 字节。此文件每次安装都可能不同，UMU 的是 xdc8otinhc4wu.dat。</p>
<p>　　3. 删除 xdc8otinhc4wu.dat，并用备份的 trjdcbqywx1hj.dat.bak 覆盖新的 trjdcbqywx1hj.dat，就可以得到 3 天试用期，只要一直做这个操作就可以不过期了。</p>
<p>　　可以使用批处理脚本来操作，下面代码保存为 crack.cmd，放在安装目录下：</p>
<p><font color="#99ccff">copy trjdcbqywx1hj.dat.bak trjdcbqywx1hj.dat /y<br>
del %SystemRoot%\system32\xdc8otinhc4wu.dat<br>
start KDJLJJ242003.exe</font></p>
<p>　　注意您机上不一定是 xdc8otinhc4wu.dat，需要相应修改，然后把软件的快捷方式改为指向 crack.cmd。</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/How%20To">How To</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/b896af0fed8a92eaab6457d6.html#comment">查看评论</a>]]></description>
        <pubDate>2008年12月17日 星期三  17:48</pubDate>
        <category><![CDATA[How To]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/b896af0fed8a92eaab6457d6.html</guid>
</item>

<item>
        <title><![CDATA[[系统优化] 把 Users 目录移动到非系统盘]]></title>
        <link><![CDATA[http://hi.baidu.com/umu618/blog/item/d8bee2501e42975b1038c2cd.html]]></link>
        <description><![CDATA[
		
		<p>　　这次和《<span class="Apple-style-span" style="word-spacing: 0px; font: bold 14px/18px Arial; text-transform: none; color: rgb(158,180,233); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0"><a style="font-weight: bold; font-size: 14px; color: rgb(110,132,185); border-bottom: rgb(77,85,165) 1px dotted; text-decoration: none" href="http://hi.baidu.com/umu618/blog/item/2b2e743ef1cf8d3a71cf6c63.html">[系统优化] 把 Program Files 目录移动到非系统盘</a></span>》、《<span class="Apple-style-span" style="word-spacing: 0px; font: bold 14px/18px Arial; text-transform: none; color: rgb(158,180,233); text-indent: 0px; white-space: normal; letter-spacing: normal; border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0"><a style="font-weight: bold; font-size: 14px; color: rgb(110,132,185); border-bottom: rgb(77,85,165) 1px dotted; text-decoration: none" href="http://hi.baidu.com/umu618/blog/item/7ebbda58ba3c3c86800a18a0.html">[系统优化] 把 ProgramData 目录移动到非系统盘</a></span>》相比较为复杂。</p>
<p>　　第零步，和前面一样，刚装的系统，用 Administrator 登录。</p>
<p>　　第一步，和前面不同，因为 Users 目录下有一些系统占用的文件，复制不了。如果您有双系统或者用 U 盘启动 WinPE，那可以试试，不必按照 UMU 的方法。但 UMU 懒得去搞 U 盘启动 WinPE，相信大部分人也和 UMU 一样不想这么麻烦。所以结论是，得先修改注册表，再复制文件。假设要移动到 E 盘：</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] 下的 Default、ProfilesDirectory、Public 三个值的数据改一下，把盘符都改为 E:。</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-21-3843801140-3458922274-3296897442-500] 下的 ProfileImagePath 数据改为 E:\Users\Administrator。</p>
<p>[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] 下的 &quot;Common Desktop&quot;、&quot;Common Documents&quot;、CommonMusic、CommonPictures、CommonVideo 五个值的数据把盘符都改为 E:。</p>
<p>[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders] 下的值看到数据中有 C:\Users 的都改为 E:\Users。</p>
<p>　　第三步，注销，重新登录，会发现一些用户配置没正确加载的问题，但不用理会。</p>
<p>　　第四步，复制文件：</p>
<p><font style="background-color: #000080">xcopy C:\Users E:\Users\ /E /H /K /X /Y /B /C</font></p>
<p>　　第五步，注销，重新登录，在第三步看到的问题，解决了。</p>
<p>　　第六步，删除 &quot;E:\Users\Default User&quot; 目录，因为这个目录被 xcopy 复制错误，重新创建：</p>
<p><font style="background-color: #000080">mklink /J &quot;E:\Users\Default User&quot; E:\Users\Default</font></p>
<p>　　然后对照 &quot;C:\Users\Default User&quot; 的权限设置，把 &quot;E:\Users\Default User&quot; 设置成和它一样：</p>
<p><font style="background-color: #000080">cacls &quot;E:\Users\Default User&quot; /S:&quot;D:PAI(D;;CC;;;WD)(A;;0x1200a9;;;WD)(A;;FA;;;SY)(A;;FA;;;BA)&quot;</font></p>
<p>　　第七步，删除 C:\Users 目录，直接用资源管理器删除，很顺利。</p>
<p>　　第八步，最后还是和前面的文章一样，创建映射：</p>
<p><font style="background-color: #000080">mklink /J C:\Users E:\User</font></p>
<p>　　搞定了，比较麻烦，但也大同小异，至少原理是一样的。最后为了防止一些不必要的麻烦，请读者务必在刚装完的系统上试验，否则造成什么损失 UMU 可是不负责的！</p> 
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/umu618/blog/category/%CF%B5%CD%B3%B9%DC%C0%ED">系统管理</a>&nbsp;<a href="http://hi.baidu.com/umu618/blog/item/d8bee2501e42975b1038c2cd.html#comment">查看评论</a>]]></description>
        <pubDate>2008年12月06日 星期六  14:43</pubDate>
        <category><![CDATA[系统管理]]></category>
        <author><![CDATA[UMU]]></author>
		<guid>http://hi.baidu.com/umu618/blog/item/d8bee2501e42975b1038c2cd.html</guid>
</item>


</channel>
</rss>