Solved

Change Home Directory path for all AD Users

Posted on 2008-06-12
3
1,572 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 6

Accepted Solution

by:
raptorjb007 earned 250 total points
ID: 21774550
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
ID: 21774641
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
ID: 21775068
thanks for your answers guys. i must have submitted my question twice, accidentally. the question has already been answered satisfactorally.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
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…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

623 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