You are currently offline, waiting for your internet to reconnect

How to Assign a Logon Script to a Profile for a Local User

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

This article was previously published under Q315245
For a Microsoft Windows 2000 version of this article, see 258286.
This article describes how to assign a logon script to a profile for a local user's account on a Windows XP-based workstation or on a Windows-based server. This logon script runs when the local user logs on locally to the computer but does not run when the user logs on to the domain.
To complete this procedure, you must log on as an administrator or as a member of the Administrators group. If your computer is connected to a network, network policy settings also affect your ability to complete this procedure.

To assign a logon script to a user's profile, follow these steps:
  1. Click Start, and then click Control Panel.
  2. Double-click Administrative Tools, and then double-click Computer Management.
  3. In the console tree, expand Local Users and Groups, and then click Users.
  4. Click the user account that you want to work with.
  5. Click Action, and then click Properties.
  6. Click the Profile tab, and then type the path and file name of the script under Logon script.
  7. Click Apply, and then click OK.
The following information can help you share the folder correctly:
  • The default location for local logon scripts is the %SystemRoot%\System32\Repl\Import\Scripts folder. You must share this folder by using the share name netlogon.
  • If you do not want to create the netlogon share in the default location, place the script in any folder that the user has access to during logon. It is recommended that this folder be shared.
  • If the logon script is stored in a subfolder of the domain controller logon script path (Sysvol\DomainName\Scripts), precede the file name with the relative path, for example, Clerks.bat or Our_users\user_1.cmd

Article ID: 315245 - Last Review: 08/06/2002 09:00:00 - Revision: 1.2

  • Microsoft Windows XP Professional
  • kbenv kbinfo kbsecurity KB315245