Solved

win2k8 R2 Home Directory

Posted on 2014-01-27
2
425 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
  • 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

760 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

20 Experts available now in Live!

Get 1:1 Help Now