troubleshooting Question

VBScript to create users from commanline without further input.

Avatar of comoore
comoore asked on
ProgrammingVB Script
3 Comments1 Solution599 ViewsLast Modified:
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.

For example:
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.

Thanks
ASKER CERTIFIED SOLUTION
netsmithcentral

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros