Scripts Extension Tools and Settings

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

Scripts Extension Tools and Settings

This section contains references to tools associated with the Scripts Extension. This section also contains settings, Registry entries, WMI Classes, and Network information associated with the Scripts extension.

In this section

  • Scripts Extension Group Policy Settings

  • Related Information

Scripts Extension Group Policy Settings

You can use the Windows Settings\Scripts node under both Computer Configuration and User Configuration to specify scripts to be run. Note that the scripts server-side extension permits you to specify the path to the scripts that need to be run. It does not create the script. The following tables describe the Computer and User Configuration Windows Settings\Scripts node settings.

Computer Configuration\Windows Settings\Scripts

Option Description

Scripts (Startup\Shutdown)

Use this node to specify the script files to be run when the computer starts up and shuts down. You can add or delete script files by selecting the button to open the explorer window. Add or delete the script files using this window.

User Configuration\Windows Settings\Scripts

Option Description

Scripts (Logon\Logoff)

Use this node to specify the script files to be run when the user logs on and logs off. You can add or delete script files by selecting the button to open the explorer window. Add or delete the script files using this window.

You can also specify Administrative Templates Group Policy settings that modify how Group Policy scripts behave. There is an Administrative Templates node for both Computer Configuration and User Configuration in Group Policy Object Editor. The following tables summarize the Group Policy settings that are associated with Scripts Extension in a Windows 2000 or greater domain.

Computer Configuration\Administrative Templates\System\Scripts

Option Description

Run logon scripts synchronously

Enable this option to force the system to run the scripts synchronously, one after another. This option exists for computer and user configuration. Computer setting has precedence.

Run startup scripts asynchronously

Use this option to optimize the startup/logon processes so users can logon before startup scripts have finished. By default startup scripts run synchronously.

Run startup scripts visible

Enable this option to run startup scripts in a visible window. By default scripts run invisible, users are not able to interact or cancel scripts that run invisible.

Run shutdown scripts visible

Enable this option to run shutdown scripts in a visible window. By default scripts run invisible, users are not able to interact or cancel scripts that run invisible.

Maximum wait time for Group Policy scripts

Use this option to set the script timeout interval. The default interval is 600 seconds (10 minutes), and valid intervals range from 0 to 32000 seconds. This affects both computer and user scripts that run synchronously.

Computer Configuration\Administrative Templates\System\Group Policy

Option Description

Scripts policy processing

When enabled, this changes how the scripts client-side extension processes scripts policy. (Note that this affects only the processing of scripts policy—it does not affect how or when scripts are run).

When enabled, options include:

  • Processing scripts policy when on a slow link. (Note that this will not stop existing scripts from running scripts policy; it stops scripts from processing scripts policy).

  • Processing scripts policy during periodic background refresh.

  • Always process scripts policy, even if there were no changes detected.

User Configuration\Administrative Templates\System\Scripts

Option Description

Run logon scripts synchronously

Enable this option to force the system to run the script synchronously, one after another. This option also exists for Computer configuration, which can have a different value. In case of conflict, the computer configuration setting prevails. On computers running Windows XP, the Windows Explorer starts before scripts finish running.

Run legacy logon scripts hidden

Enable this option to run legacy, Windows NT 4–type logon scripts hidden. By default these run visible and so can be canceled by users.

Run logon scripts visible

Enable this option to run logon scripts in a visible window. By default scripts run invisible, users are not able to interact or cancel scripts that run invisible.

Run logoff scripts visible

Enable this option to run logoff scripts in a visible window. By default scripts run invisible, users are not able to interact or cancel scripts that run invisible.

There are policies that control which Microsoft Management Console (MMC) snap-ins can and cannot be run. By setting these policies, a user can be restricted from administering scripts policies by restricting the scripts MMC snap-in. These policies are shown in the following table.

User Configuration\Administrative Templates\Windows Components\Microsoft Management Console\Restricted/Permitted snap-ins\Group Policy\Group Policy snap-in extensions

Option Description

Scripts (Logon/Logoff)

The default setting is Not Configured, which causes the Restrict users to the explicitly permitted list of snap-ins setting to apply. Enabling Scripts (Logon/Logoff) permits the snap-in. Disabling the setting prohibits the snap-in.

Scripts (Startup\Shutdown)

The default setting is Not Configured, which causes the Restrict users to the explicitly permitted list of snap-ins setting to apply. Enabling Scripts (Startup\Shutdown) permits the snap-in. Disabling the setting prohibits the snap-in.

Restrict users to the explicitly permitted list of snap-ins

The default setting of Not Configured and Disabled permits any snap-in that is not explicitly prohibited. If this setting is Enabled, only explicitly Enabled snap-ins are permitted.

For more information about Group Policy settings, see the Group Policy Settings Reference for Windows Server 2003.

The following resources contain additional information that is relevant to this section.