Microsoft KB Archive/271657

= Scripted Home Directory Paths Require That Folders Exist =

Article ID: 271657

Article Last Modified on 2/28/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server

-



This article was previously published under Q271657



SUMMARY
You can script home folder and Terminal Services home directory paths in Microsoft Windows 2000.

Home folder paths can be scripted by using Active Directory Services Interface (ADSI) to modify the HomeDrive and HomeDirectory properties of a user account. You can also modify Terminal Services home directory properties using a custom Component Object Model (COM) object that wraps the Windows Terminal Server (WTS) APIs (WTSUserConfigTerminalServerHomeDir and WTSUserConfigTerminalServerHomeDirDrive).

Your scripting can make modifications to a user's account, but you need to manually create each user's folder and to assign the appropriate permissions, which by default, are Administrators - Full Control and User - Full Control.

For example, if you set a user's HomeDrive to drive D and HomeDirectory to \\Server\Share\Username, you need to create a Username folder under Share and assign to it the appropriate permissions.



MORE INFORMATION
When you assign these properties through Active Directory Users and Computers or Local Users and Groups, user extensions are in place that create these folders and assign the appropriate permissions.

For additional information about using ADSI to create user shares, click the article number below to view the article in the Microsoft Knowledge Base:

234746 How to Create User Shares for All Users in a Domain with ADSI

For more information about ADSI Scripting in Windows 2000, see the following Microsoft Web site:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/technologies/activedirectory/default.mspx

Keywords: kbinfo KB271657

-

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

© Microsoft Corporation. All rights reserved.