Microsoft KB Archive/816313

= How to assign a home folder to a user =

Article ID: 816313

Article Last Modified on 12/3/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition (32-bit x86)
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Small Business Server 2003 Standard Edition
 * Microsoft Windows Small Business Server 2003 Premium Edition

-



IN THIS TASK

 * SUMMARY
 * Assign a Home Folder to a Domain User
 * Assign a Home Folder to a Local User
 * Specify a Home Folder for a Terminal Server
 * Assign a Home Folder to a User from the Command Line
 * Assign a Home Folder to a User by Using a Logon Script



SUMMARY
This step-by-step article describes how to use the Active Directory Users and Computers management console, the Computer Management management console, a logon script, or the command line to assign a home folder to a user.

Home folders and My Documents make it easier for an administrator to back up user files and manage user accounts by collecting the user's files in one location. If you assign a home folder to a user, you can store the user's data in a central location on a server, and make backup and recovery of data easier and more reliable.

If no home folder is assigned, the computer assigns the default local home folder to the user account. The home folder can use the same location as the My Documents folder. When you are using Windows 2003 Terminal Services, the user profile is the default home folder.

back to the top

Assign a home folder to a domain user
Note: To specify a network path for the home folder, you must first create the network share and set permissions that permit the user access. You can do this with Shared Folders in Computer Management on the server computer.

To assign a home folder to a domain user:  Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers. In the console tree, click Users. In the Details pane, right-click the user account, and then click Properties. In the Properties dialog box, click Profile. Under the Home folder, type the folder information. To do this, follow these steps:  To assign a home folder on a network server, click Connect, and then specify a drive letter. In the To box, type a path. This path can be any one of the following types:</li></ol>

<ul> Network path, for example:

\\ \ \tester

</li> You can substitute  for the last subfolder in the path, for example:

\\ \ \ 

</li></ul>

Note In these examples,  is the name of the file server housing the home folders, and   is the shared folder.</li> Click OK.</li></ol>

back to the top

Assign a home folder to a local user
To assign a home folder to a local user:

<ol> Click Start, click Control Panel, double-click Administrative Tools, and then double-click Computer Management.</li> In the console tree, click Users in Local Users and Groups.</li> Click the user account.</li> Click the Action menu, and then click Properties.</li> Click the Profile tab, click Connect, and then specify a drive letter.</li> In the To box, type a path. This path can be any of the following types: <ul> Network path, for example:

\\ \ \tester

</li> You can substitute  for the last subfolder in the path, for example:

\\ \ \ 

Where  is the name of the file server housing the home folders, and where   is the shared folder.</li></ul> </li> Click OK.</li></ol>

back to the top

Specify a home folder for a terminal server
In Windows Server 2003, you can specify a home folder for a terminal server. Assign each user on a terminal server a unique home folder. This makes sure that you store the program information separately for each user in the multi-user environment.

Note: If you specify only the home folder for Windows Server 2003, both Windows 2003 and Terminal Services use this home folder.

To specify a home folder for a terminal server, use one of the following procedures.

Domain user account
<ol> Click Start, point to Programs, point to Administrative Tools, and then click Active Directory Users and Computers.</li> In the console tree, expand the domain node, and then click the Users folder.</li> Double-click the user account.</li> Click the Terminal Services Profile tab.</li> <li>If the Terminal Services home folder is on the local server, click Local path, and then type the path of the profile.

Note If you do not specify the location path in the Terminal Service Home folder pane, the default local home folder is located at the following path:

\Documents and Settings\

</li> <li>If the Terminal Services home folder is on a network share, click Connect, select a drive to connect, and then type the network path.</li> <li>Click OK.</li></ol>

Local user account
<ol> <li>Click Start, point to Programs, point to Administrative Tools, and then click Computer Management.</li> <li>In the console tree, click Users in Local Users and Groups.</li> <li>Double-click the user account.</li> <li>Click the Terminal Services Profile tab.</li> <li>If the Terminal Services home folder is on the local server, click Local path, and then type the path of the profile.

Note If you do not specify the location path in the Terminal Service Home folder pane, the default local home folder is located at the following path:

\Documents and Settings\

</li> <li>If the Terminal Services home folder is on a network share, click Connect, select a drive to connect, and then type the network path.</li> <li>Click OK.</li></ol>

back to the top

Assign a home folder to a user from the command line
You can use the net user command to assign a home folder to a user from the command line. For example, at the command line, type the following command, and then press ENTER:

net user tester /homedir:\\server\tester$

This command assigns the tester$ hidden shared folder on the server to the user Tester.

back to the top

Assign a home folder to a user by using a logon script
You can automate user account creation and home folder assignment. You can use the net user command to create local user accounts in configuration scripts.

Create a logon script
The following example creates a user named &quot;tester&quot;. The user is created with a comment, password expiration settings, home folder, and profile path configured: NET USER tester /add /comment:&quot;Example Account for User&quot; /expires:never /homedir:\\zippy\%username%$ /profilepath:\\zippy\profile

Assign a logon script to a profile
To assign a logon script to a profile, follow these steps: <ol> <li>Click Start, point to Settings, and then click Control Panel.</li> <li>Double-click Administrative Tools, and then double-click Computer Management.</li> <li>In the console tree, click Local Users and Groups, and then click Users.</li> <li>Click the user account, click Action, and then click Properties.</li> <li>Click Profile, and then type the file name of the script in the Logon script box.

Note: For local accounts, the logon script path is %Systemroot%\System32\Repl\Import\Scripts. However, this folder is not created if you perform a clean installation of Windows Server 2003. If the logon script is stored in a subfolder of the domain controller, type the following login script path before the logon script name:

sysvol\domainname\scripts

</li></ol>

Note: You can also use Group Policy to assign home folders. For additional information about using Group Policy to assign home folders see the &quot;To change the path of a user's home directory&quot; topic in the Windows 2003 help files.

back to the top

Keywords: kbactivedirectory kbhowtomaster KB816313

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.