Solved

Change Home Directory path for all AD Users

Posted on 2008-06-12
3
1,560 Views
Last Modified: 2009-03-31
I currently have home directories which map "H:\" to "\\server01\firstname.lastname$" for all users in my Windows 2003 AD domain. Users are in multiple OU's. I need to change only the server name portion of the mapping for all the home drive mappings. Is there a VB Script i could use to lookup usernames from a text file and do this for all users in the text file? (Any other solution would also be welcome.)
0
Comment
Question by:LColdicott
3 Comments
 
LVL 6

Accepted Solution

by:
raptorjb007 earned 250 total points
Comment Utility
Typically home directories are configured in the profile tab of the user account, something like "\\server01\users\%username%". The %username% is a an environment variable that is defined by the current user's account logon name.

You can map a drive in a script based on group policy to accomplish this as well as the %username% variable would be accessible in a batch environment.

Are you specifically looking to utilize a firstname.lastname directory naming structure for the user folders or would their username suffice(assuming their username inst already the firstname.lastname convention)?
0
 
LVL 2

Assisted Solution

by:kunalclk
kunalclk earned 250 total points
Comment Utility
create a batch file and include this iline in that

net use  M: \\servername\myshare /y

this would map the drive M: as per the share mentioned.

Apply this batch policy using GPO. so no need to use the Profiles tab to map Home Directories. I hope this will help you.

Thanks
0
 

Author Comment

by:LColdicott
Comment Utility
thanks for your answers guys. i must have submitted my question twice, accidentally. the question has already been answered satisfactorally.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

My last post dealt with using group policy preferences to set file associations, a very handy usage for a GPP. Today I am going to share another cool GPP trick, this may be a specific scenario but I run into these situations frequently in my activit…
Synchronize a new Active Directory domain with an existing Office 365 tenant
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now