VBScript to create users from commanline without further input.
Posted on 2007-07-30
I am trying to write a script that will allow my administrative users to create a single user from the command line without being prompted for input after pressing enter. I would like to, using switches or data entered after the name of the vbscript input the information for user creation.
createuser firstname lastname logonname
or createuser /firstname=firstname /lastname=lastname /logonname=logonname
I have the script for all of the actions (creating home directory, user account default group memberships), but I can't figure out how to get it down to a system as simple as that and I have users that want to work in this way. I can't seem to find documentation on how to do this, or how to get these inputs in as my variables.