I made this .bat to create users in my domain easier..
Code
set /p user=Insert username:
net user %user% /add /logonpasswordchg:yes
net group hai %user% /add
md //srv//users/%user%
net share %user%=\\srv\users\%user%
echo y|cacls \\srv\users\%user% /g %user%:f
This script will create a user with display name and logon name only, then giving it the network shares and permissions.
I want to do this in vbscript insted so i can make the script more user friendly.
Running the program should be like this(in a cmd prompt):
Full name?: INPUT.
If my input is Michael Johnson, it should create the user with first name: Michael, last name: Johnson, logon name: Mijo.