用vbs实现本地添加用户的脚本
发布时间:2016-12-28 来源:查字典编辑
摘要:DimWshShellsetWshShell=CreateObject("wscript.Shell")WshShell.Run"cmd/k...
DimWshShell
setWshShell=CreateObject("wscript.Shell")
WshShell.Run"cmd/k"
fori=1to3
WScript.Sleep500
WshShell.SendKeys"netuseradmin"&i&"abcd@123/add"
WshShell.SendKeys"{ENTER}"
next
WshShell.SendKeys"exit"
WshShell.SendKeys"{ENTER}"