Solved

Change Home Directory path for all AD Users

Posted on 2008-06-12
3
1,564 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
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

This article runs through the process of deploying a single EXE application selectively to a group of user.
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
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 …

810 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