Create batch file to map user folder
Posted on 2006-05-09
Where to begin.
Company has ONE main DC, w/7 out of state servers; which run as DC's, but aren't included in the MAIN DC, only the users's exist, in their OU's according to location.
I want to create a batch file to add to the OU of the users. I could either create a GP for each OU, but would rather have the info stored under the Profile Tab->
Profile Tab ->
I honestly would prefer this area User Profle
so Admins can see the batch file, info, etc.
How can I create a batch file, that will "carry down" to all the OU's? The way AD is setup, is we have one main OU called Company Users and then under that we have OU's for our 7 outer offices, as well as having OU's which DO NOT need user mapping. So, I'd like to create a batch file that will populate the necessary path, such as \\server\users and create the user folder according to the user logon name and their counting OU. All the Servers use the same syntax for mapping the user folders, they're all \\servername\users and all map the L: drive. What we've been doing is manually going to the necessary server and created the user folder.
Know there's any easy way to do this but haven't found exactly what I'm looking for on EE. Like I said, I'd prefer the info to be entered under the User's Profile tab and would like to also know how to fill in that information automatically w/out copying the path info to each user manually.
I'll need exact scripting b/c I'm not familiar. Thanks!