[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

win2k8 R2 Home Directory

Posted on 2014-01-27
2
Medium Priority
?
443 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
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…

650 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