Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting User Drives

Status
Not open for further replies.

AaronBeau

MIS
Jan 29, 2008
89
0
0
US
Currently I am in the process of establishing personal user drives for all my users. For some reason, the prior admin created one share for EVERYTHING!!! I want everyone to have a "U:\" drive that connects to \\<SHARE>\users\<USERNAME>

This is how I am setting up the drives in AD:
Code:
dsquery user "<ENTER OU HERE>" | dsmod user -hmdrv u: -hmdir "\\<SHARE>\users\$username$"

This is configuring all the proper settings in AD; however, it doesn't create the new share like when you use the ADUC GUI.

Does anyone know how I could go about scripting the creation of the user's folder? Thanks in advance.

----------------------------
Beau71 - MCSA
----------------------------
 
AaronBeau,

Highlight all users in the desired OU, right click and select properties. Go to the Profiles Tab and set the profiles from there.

\\Server\Share\%username% This will create the folders and set permissions as well.

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top