Importing Usernames and Passwords into Windows 2000 Server Users a

G

Guest

Could I find out how to import usernames and passwords from a text file into
Windows 200 server users and groups. I have over 1200 students to import, I
would also like to create secure folders for them as well that are attached
to their usernames.
Please help.

Regards;

Pablo
 
P

Pegasus \(MVP\)

Pablo said:
Could I find out how to import usernames and passwords from a text file into
Windows 200 server users and groups. I have over 1200 students to import, I
would also like to create secure folders for them as well that are attached
to their usernames.
Please help.

Regards;

Pablo

Assuming that you have a text file c:\Users.txt with the following
structure:

PPicasso SomePassword
HMoore AnotherPassword

you could run a batch file like so:

@echo off
for /F "tokens=*" %%* in (c:\Users.txt) do call :Create %%*
exit /b

:Create
net user %1 %2 /add
net user %1 /ScriptPath:Netlogon.bat
md d:\Shares\%1
net share %1=d:\Shares\%1
cacls d:\Shares\%1 /e /t /g %1:F
 
G

Guest

Dear Pegasus;

Thankyou for your response it is much appreciated. By the way, does this
also create local folders for each user as well??

Thankyou for your help

Pablo
 
P

Pegasus \(MVP\)

Yes, it does.

I strongly recommend that you take the time to find out
how exactly the batch file works and what it does. I have
done the hard work for you - you now need to familiarise
yourself with the technique so that you can adjust it and
apply it with confidence in any situation.
 
G

Guest

Dear Pegasus;

You are right, thankyou for your help it is much appreciated.

Regards;

Pablo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top