当前位置: 移动技术网 > 网络运营>安全>企业安全 > 命令行下一种新的加帐号的方法

命令行下一种新的加帐号的方法

2018年03月28日  | 移动技术网网络运营  | 我要评论

  今天研究了一下用户控制面板文件nusrmgr.cpl,发现调用的是shell.users来加用户,它还同时调用了wscript.shell、shell.application、shell.localmachine这三个组件。不过加用户的话,这一个shell.users就足够了。那么可能在删掉了net.exe和不用adsi之外,这也可能是一种新的加用户的方法。代码如下:

  js:

  var o=new activexobject( "shell.users" );

  z=o.create("test") ;

  z.changepassword("123456","")

  z.setting("accounttype")=3;

  vbs:

  set o=createobject( "shell.users" )

  set z=o.create("test")

  z.changepassword "123456",""

  z.setting("accounttype")=3

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网