Create a script program for WIN account.

xiaoxiao2021-03-06  98

A long time ago, a pressure test, analog multi-user access, and massively create a script program for WIN account. The file name is CREATEUSER.JS, and the run command is:

CreateUser.js / User: Share / Password: QAZW / Start: 1 / Count: 120Function Run () {wshshell = wscript.createObject ("wscript.shell") // msg = wshshell.run ("Net user Share1 QAZW / Add / Add) ", TRUE)

var argsUnnamed = WScript.Arguments.Named; var count = argsUnnamed ( "count") userName = argsUnnamed ( "user") password = argsUnnamed ( "password") start = argsUnnamed ( "start") if (start == null) { START = 1} else {start = parseint (start)}

IF (username == null) {wscript.echo ("no username") returnon}

IF (password == null) {wscript.echo ("no password") Return} if (count == null) {wshshell.run ("Net USER" " " password "/ delete", 1, True)} else {count = parseint (count) var i = 0; for (; i

}

Run ()

//Wshshell.popup(msg)

转载请注明原文地址:https://www.9cbs.com/read-103402.html

New Post(0)