Set properties of individual scripts that are run with the Windows-based script host

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

To set properties for individual scripts that are run with the Windows-based script host

  1. Open Windows Explorer. Browse to the folder with the script whose properties you want to set, and right-click it.

  2. Select Properties, and then click the Script tab.

  3. Select the Stop script after specified number of seconds check box.

  4. In the seconds box, enter the time limit you want to place on this script.

Notes

  • Performing this task does not require you to have administrative credentials. Therefore, as a security best practice, consider performing this task as a user without administrative credentials.

  • To open Windows Explorer, click Start, point to All programs, point to Accessories, and then click Windows Explorer.

  • These settings override global settings.

  • After clicking OK, a command file is created that binds the property settings to the script. It has the file name extension .wsh. You can use this command file as an alternate script file to run the script.

For more information, see the Windows Script Technologies Web site at the Microsoft Web site (https://www.microsoft.com/).

See Also

Concepts

Windows Script Host overview Set global properties for all scripts that are run with the Windows-based script host Run Windows Script Host