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

Article translations Article translations
Article ID: 315245 - View products that this article applies to.
This article was previously published under Q315245
For a Microsoft Windows 2000 version of this article, see 258286.
Expand all | Collapse all

SUMMARY

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.

MORE INFORMATION

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

Properties

Article ID: 315245 - Last Review: August 6, 2002 - Revision: 1.2
APPLIES TO
  • Microsoft Windows XP Professional
Keywords: 
kbenv kbinfo kbsecurity KB315245

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com