Microsoft KB Archive/324803

= How To Assign a Logon Script to a Profile for a Local User in Windows Server 2003 =

Article ID: 324803

Article Last Modified on 10/30/2006

-

APPLIES TO


 * 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 Server 2003, Web Edition
 * Microsoft Windows Server 2003, 64-Bit Datacenter Edition
 * Microsoft Windows Server 2003, Enterprise x64 Edition

-



This article was previously published under Q324803



For a Microsoft Windows 2000 version of this article, see 258286.

For a Microsoft Windows XP version of this article, see 315245.

IN THIS TASK

 * SUMMARY
 * How to Assign a Logon Script to a User's Profile



SUMMARY
This article describes how to assign a logon script to a profile for a local user's account in Windows Server 2003. This logon script runs when a local user logs on locally to the computer. This logon script does not run when the user logs on to the domain.

NOTE: You must be logged on as Administrator or as a member of the Administrators group to complete this procedure. If your computer is connected to a network, network policy settings may also prevent you from completing this procedure.

back to the top

How to Assign a Logon Script to a User's Profile

 * 1) Click the Start, point to Administrative Tools, and then click Computer Management.
 * 2) In the console tree, expand Local Users and Groups, and then click Users.
 * 3) In the right pane, right-click the user account that you want, and then click Properties.
 * 4) Click the Profile tab.
 * 5) In the Logon script box, type the file name (and the relative path, if necessary) of the logon script.

NOTE: If the logon script is stored in a subfolder of the default logon script path, put the relative path to that folder in front of the file name. For example, if the Startup.bat logon script is stored in \\ \Netlogon\, type \Startup.bat.
 * 1) Click Apply, and then click OK.

NOTES:
 * Logon scripts that are stored on the local computer apply only to users who log on to who local computer.
 * Local logon scripts must be stored in a shared folder that uses the share name of Netlogon, or be stored in subfolders of the Netlogon folder.
 * The default location for local logon scripts is the Systemroot\System32\Repl\Imports\Scripts folder. This folder is not created on a new installation of Windows. Therefore, the SystemRoot\System32\Repl\Imports\Scripts folder must be created and shared out by using the Netlogon share name.
 * If you do not want to create the Netlogon share in the default location, put the logon script in any folder that the user can access during logon, and then share this folder.

back to the top

Additional query words: kbactivedirectory login log-on log-in

Keywords: kbmgmtservices kbenv kbhowto kbhowtomaster KB324803

-

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

© Microsoft Corporation. All rights reserved.