Solved

win2k8 R2 Home Directory

Posted on 2014-01-27
2
438 Views
Last Modified: 2014-04-04
How do you create home directory or default folders for users every time one is added to AD users container or any OU container for that matter?
0
Comment
Question by:SydNal2009
[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
  • 2
2 Comments
 
LVL 6

Expert Comment

by:Spyder2010
ID: 39813275
When an AD user is created, regardless of what OU the object is in, you can create a home folder for that user using the following process:

1.) Open Active Directory Users and Computers.  This is an administrative utility used to manage AD, and can be installed on any Windows 7 box by downloading and installing Remote Server Administration Tools(RSAT) from Microsoft's site, or it can be installed on Server 2008 machines by adding 'AD DS and AD LSD Tools' as a Feature through Server Administrator.

2.) Either browse the directory and find your user object, or use the 'Find' feature.

3.) Go to the Properties of your user object, go to the 'Profile' tab, under the Home Folder section, enter the drive letter that you want mapped as the home directory, and the UNC path to the share that will host the home directory.  You can also use the %username% variable when creating the home folder: \\server\share\%username%
This will create a folder with the same name as the username of the user object
0
 
LVL 6

Accepted Solution

by:
Spyder2010 earned 500 total points
ID: 39813304
Here is a good Microsoft article about home folder creation, along with some ways to automate it... specifically using a batch file:
http://support.microsoft.com/kb/320043

The following example creates a user that is named tester, with comment, password expiration, home directory, and profile path configured:

NET USER tester /add /comment:"Example Account for User"
/expires:never
/homedir:\\zippy\%username%$
/profilepath:\\zippy\profile

There are also ways to do it with Powershell and the Task Scheduler... you could write a PS script that would search for all users in a specific OU, check to see if they had a home directory defined, and if not, create one for them... most, if not all of that could be done using the 'Get-ADUser' and 'Set-ADUser' cmdlets.  If you need to look at the file system with PS, use the Get-ChildItem cmdlet... lots of documentation and examples can be found for these 3 PS cmdlets with a quick google search
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

690 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