Export (0) Print
Expand All

Assign a logon script to a local user account

Updated: January 21, 2005

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

To assign a logon script to a local user account

  1. Open Computer Management.

  2. In the console tree, click Users.


    • Computer Management/System Tools/Local Users and Groups/Users

  3. Right-click the user account you want, and then click Properties.

  4. On the Profile tab, in Logon script, type the file name and relative path of the script.


  • To perform this procedure, you must be a member of the Power Users group, or the Administrators group on the local computer, or you must have been delegated the appropriate authority. If the computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. As a security best practice, consider using Run as to perform this procedure. For more information, see Default local groups, Default groups, and Using Run as.

  • To open Computer Management, click Start, click Control Panel, double-click Administrative Tools, and then double-click Computer Management.

  • Logon scripts can contain malicious commands. It is recommended that you be familiar with the contents of the logon script before assigning it to a user.

  • Logon scripts that are stored on a local computer apply only to users logging on to that local computer.

  • Local logon scripts must be stored in a shared folder, or subfolders of the shared folder, named Netlogon. If this folder does not exist by default, you must create it. To specify a logon script that is stored in a subfolder of the Netlogon folder, precede the file name with the relative path to that folder. For example, to assign the Startup.bat logon script stored in \\ComputerName\Netlogon\FolderName to a local user, in Logon script, type: FolderName\Startup.bat

Information about functional differences

  • Your server might function differently based on the version and edition of the operating system that is installed, your account permissions, and your menu settings. For more information, see Viewing Help on the Web.

See Also

Community Additions

© 2016 Microsoft