<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[GreyHawk's Blog]]></title> 
<link>http://www.lovecns.com/index.php</link> 
<description><![CDATA[网络探索者的窝]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[GreyHawk's Blog]]></copyright>
<item>
<link>http://www.lovecns.com/post/719/</link>
<title><![CDATA[命令行下一种新的加帐号的方法]]></title> 
<author>GreyHawk &lt;&gt;</author>
<category><![CDATA[小黑一把]]></category>
<pubDate>Thu, 02 Jul 2009 03:49:02 +0000</pubDate> 
<guid>http://www.lovecns.com/post/719/</guid> 
<description>
<![CDATA[ 
	作者：lcx<br/><br/>今天研究了一下用户控制面板文件nusrmgr.cpl，发现调用的是Shell.Users来加用户，它还同时调用了 wscript.shell、Shell.Application、Shell.LocalMachine这三个组件。不过加用户的话，这一个 Shell.Users就足够了。那么可能在删掉了net.exe和不用adsi之外，这也可能是一种新的加用户的方法。代码如下：<br/><br/><br/>js:<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">var o=new ActiveXObject( &quot;Shell.Users&quot; );<br/>z=o.create(&quot;test&quot;) ;<br/>z.changePassword(&quot;123456&quot;,&quot;&quot;)<br/>z.setting(&quot;AccountType&quot;)=3;</div></div><br/><br/>vbs:<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">Set&nbsp;&nbsp;o=CreateObject( &quot;Shell.Users&quot; )<br/>Set z=o.create(&quot;test&quot;)<br/>z.changePassword &quot;123456&quot;,&quot;&quot;<br/>z.setting(&quot;AccountType&quot;)=3</div></div><br/>Tags - <a href="http://www.lovecns.com/tags/%25E6%258A%2580%25E5%25B7%25A7/" rel="tag">技巧</a>
]]>
</description>
</item>
</channel>
</rss>