Assign a login script to user files in Win 2003

  

This article describes how to assign a login script to a profile for a local user account in Windows Server 2003.

This login script runs when a local user logs on to the computer locally. This login script does not run when the user logs in to the domain.

Note: You must be logged in as an administrator or a member of the Administrators group to complete this step. If your computer is networked, network policy settings may also prevent you from completing this process.

How to Assign a Login Script to a User Profile

Click Start, point to Administrative Tools, and then select Computer Management. In the console tree, expand “Local Users and Groups, click Users. In the right pane, select the user account you want to view its properties.

Click the Profile tab.

In the "Login Script" box, type the file name of the login script (and type the relative path if needed).

Note: If the login script is stored in a subfolder of the default login script path, add the relative path to the file name before the file name. For example, if the Startup.bat login script is stored in the \\\\computername\\NetLogon\\ folder name £? Please type the folder name \\Startup.bat.

Click Apply and then click OK.

Note:

The login script stored on the local machine is only available to users who log in to the local computer.

The local login script must be stored in a folder that uses the "NetLogon" shared name or must be stored in a subfolder of the NetLogon folder.

The default location for the local login script is the Systemroot\\System32\\Repl\\Imports\\Scripts folder. This folder is not created in a freshly installed Windows. Therefore, you must create and share the SystemRoot\\System32\\Repl\\Imports\\Scripts folder by using the "NetLogon" share name.

If you don't want to create a <quo;NetLogon” share in the default location, place the login script in any folder that the user can access during the login process and then share this folder.

Copyright © Windows knowledge All Rights Reserved