P
Pam
Hello,
I am currently working on creating a batch file to add
users to my W2000 domain. I have got it up and working,
except for one quirk. In active directory, it displays
the Username. I want it to display the Display name (as I
have a large network and this is easier to administrate)
I was wondering if there was a variable for this I could
use in my batch file?
My batch file is as follows:
@echo on
echo Creating User : %1
net user %1 /add /SCRIPTPATH:common /FULLNAME:%
3 /EXPIRES:NEVER
net user %1 %2
net user %1
echo Adding %1 to Common Group
net group common %1 /add
echo Creating Home Directory for %1
mkdir h:\home\%1
net share %1=h:\home\%1
net user %1 /HOMEDIR:\\servername\%1
Again, this works fine, but displays just the username in
AD.
Any solutions would be happily accepted!
Thanks.
Pam
I am currently working on creating a batch file to add
users to my W2000 domain. I have got it up and working,
except for one quirk. In active directory, it displays
the Username. I want it to display the Display name (as I
have a large network and this is easier to administrate)
I was wondering if there was a variable for this I could
use in my batch file?
My batch file is as follows:
@echo on
echo Creating User : %1
net user %1 /add /SCRIPTPATH:common /FULLNAME:%
3 /EXPIRES:NEVER
net user %1 %2
net user %1
echo Adding %1 to Common Group
net group common %1 /add
echo Creating Home Directory for %1
mkdir h:\home\%1
net share %1=h:\home\%1
net user %1 /HOMEDIR:\\servername\%1
Again, this works fine, but displays just the username in
AD.
Any solutions would be happily accepted!
Thanks.
Pam