Click Start, and then click Run.
In the Open box, enter wscript, and then click OK. The Windows Script Host Settings dialog box appears.
Select the Stop script after specified number of seconds check box.
In the seconds box, enter the time limit you want to place on all scripts.
With one setting, you can set properties for all scripts that are run with the Windows-based script host. Every script that is run with this host automatically uses these settings.
Download Windows Script Host samples
Windows Script Host object model
Windows Script Host overview
Run scripts using the command-line-based script host (cscript.exe)
Run scripts using the Windows-based script host (Wscript.exe)
Run Windows Script Host samples
Set global properties for all scripts that are run with the Windows-based script host (Wscript.exe)
Set properties for individual scripts that are run with the Windows-based script host (Wscript.exe)
For more information, see the Windows Script Technologies Web site at the Microsoft Web site.