用vbs实现本地添加用户的脚本
程序员文章站
2022-04-29 09:21:02
dim wshshell set wshshell = createobject("wscript.shell") wshshell...
dim wshshell
set wshshell = createobject("wscript.shell")
wshshell.run "cmd /k"
for i = 1 to 3
wscript.sleep 500
wshshell.sendkeys "net user admin" & i & " abcd@123 /add"
wshshell.sendkeys "{enter}"
next
wshshell.sendkeys "exit"
wshshell.sendkeys "{enter}"
set wshshell = createobject("wscript.shell")
wshshell.run "cmd /k"
for i = 1 to 3
wscript.sleep 500
wshshell.sendkeys "net user admin" & i & " abcd@123 /add"
wshshell.sendkeys "{enter}"
next
wshshell.sendkeys "exit"
wshshell.sendkeys "{enter}"
上一篇: 如何使用Android注解处理器
下一篇: vbs教程 chm下载