Solved

win2k8 R2 Home Directory

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
A procedure for exporting installed hotfix details of remote computers using powershell
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…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

770 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