Solved

win2k8 R2 Home Directory

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

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
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…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

726 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