Question
I am a college student taking an INTRODUCTORY windows 10 OS scripting class and need some help with creating a script. I am to add
I am a college student taking an INTRODUCTORY windows 10 OS scripting class and need some help with creating a script.
I am to add a new local user account to the computer. The user's login name and password must be passed to the batch file by the user at the time the batch file is executed. I think I can use the command Net user %1 %2 / add whereby %1 is the username and %2 is the password
How do I prompt the user to add this information?
I need to create a message saying the user was successfully added.
Of course if the user account already exists, I need to display a message saying the user already exists and end the batch file.
Before creating the account I must check if the account already exists..
I CAN NOT USE IF STATEMENTS!!!!!
Can you possibly help me? I would greatly appreciate it!!!!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started