Script create local users in xp pro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a demo system that needs to have around 50 users created. I would like
to be able to roll out a demo config at any time. Because of this I need a
scrit to create the same 50 users on the local system for an xp pro system.
Does anyone have a script for this?
 
Scott Dever said:
I have a demo system that needs to have around 50 users created. I would like
to be able to roll out a demo config at any time. Because of this I need a
scrit to create the same 50 users on the local system for an xp pro system.
Does anyone have a script for this?

Use this batch file:
@echo off
for /F %%a in (c:\users.txt) do net user %%a SomePassword /add
 
I have messed around with it. I can not get anything in the test file to
parse to the net command. I am using a text file with the following text

superuser
hwinston


Thank you for the help.
 
Here is my screen shot:

C:\>notepad users.txt
(to put superuser and hwinston into a text file)

C:\>for /f %a in (users.txt) do net user %a password /add

C:\>net user superuser password /add
The command completed successfully.

C:\>net user hwinston password /add
The command completed successfully.

The above syntax uses single % characters because
I typed the command at the Command Prompt.
My previous post said "batch file", hence I used
double % characters.
 
That worked. Evidently there was something wrong with the first txt file. It
worked with the second one I created. Thank you
 
Back
Top