Freigeben über


Assign user logon scripts

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

To assign user logon scripts

  1. Open Group Policy Object Editor.

  2. In the console tree, click Scripts (Logon/Logoff).

    Where?

    • Group Policy object/User Configuration/Windows Settings/Scripts (Logon/Logoff)
  3. In the details pane, double-click Logon.

  4. In the Logon Properties dialog box, click Add.

  5. In the Add a Script dialog box, do the following:

    • In Script Name, type the path to the script, or click Browse to search for the script file in the Netlogon shared folder on the domain controller.

    • In Script Parameters, type any parameters that you want, the same way as you would type them on the command line. For example, if your script includes parameters called //logo (display banner) and //I (interactive mode), type //logo //I.

  6. In the Logon Properties dialog box, specify the options that you want as follows:

    • Logon Scripts for Group Policy object--Lists all the scripts that are currently assigned to the selected Group Policy object. If you assign multiple scripts, the scripts are processed in the order that you specify. To move a script up in the list, click it, and then click Up. To move a script down in the list, click it, and then click Down.

    • Add--Opens the Add a Script dialog box, where you can specify any additional scripts to use.

    • Edit--Opens the Edit Script dialog box, where you can modify script information, such as name and parameters.

    • Remove--Removes the selected script from the Logon Scripts list.

    • Show Files--Displays the script files that are stored in the selected Group Policy object.

Notes

  • To complete this procedure, you must be logged on as a member of the Domain Administrators security group, the Enterprise Administrators security group, or the Group Policy Creator Owners security group.

  • To open Group Policy Object Editor, see Related Topics.

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

Concepts

Open Group Policy from Active Directory Users and Computers
Open Group Policy from Active Directory Sites and Services
Ways to open Group Policy Object Editor
Edit the local Group Policy object