How to configure the SCRIPT time-out value in the .osd file for individual SoftGrid-enabled applications or for the SoftGrid Client in SoftGrid

Article translations Article translations
Article ID: 931250 - View products that this article applies to.
Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base:
256986 Description of the Microsoft Windows registry
Expand all | Collapse all

On This Page

INTRODUCTION

This article describes how to configure the SCRIPT time-out value in the .osd file for individual SoftGrid-enabled applications or for the SoftGrid Client in Microsoft SoftGrid.

MORE INFORMATION

How to configure the SCRIPT time-out value for individual SoftGrid-enabled applications

You can configure the SCRIPT time-out value in the .osd file by using the TIMEOUT attribute. If the SCRIPT element contains both the WAIT attribute and the TIMEOUT attribute, the WAIT attribute will be ignored.

To configure the SCRIPT time-out value, follow these steps:
  1. Open the .osd file by using a text editor such as Notepad.
  2. In the SCRIPT element, type TIMEOUT="".
  3. In the TIMEOUT="" value, type the number of seconds that you want the script to wait before it times out. For example, if you want the script to wait 60 seconds before it times out, set the TIMEOUT="" value as follows.
    <DEPENDENCY>
      <SCRIPT TIMING="PRE" EVENT="LAUNCH" PROTECT="TRUE" TIMEOUT="60">
        <SCRIPTBODY></SCRIPTBODY>
      </SCRIPT>
    </DEPENDENCY>
    Note If you set the value to 0, the script will wait indefinitely.
  4. Save the .osd file, and then exit the text editor.

How to configure the SCRIPT time-out value for the SoftGrid Client

You can configure the SCRIPT time-out value for the SoftGrid Client by modifying the registry. When you do this, all SoftGrid-enabled applications will be affected. By default, the required registry value does not exist. Therefore, you must create it. To do this, follow these steps.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.
  1. Click Start, click Run, type regedit in the Open box, and then click OK.
  2. Expand the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Softricity\SoftGrid Client\CurrentVersion\Configuration
  3. Right-click Configuration, point to New, and then click DWORD Value.
  4. For New Value #1, type ScriptTimeout.
  5. Right-click ScriptTimeout, and then click Modify.
  6. For Base, click Decimal.
  7. For Value data, type the number of seconds that you want the script to wait before it times out.
  8. Exit Registry Editor.
  9. Set the WAIT attribute in the .osd file to TRUE so that the new registry value will not be ignored. To do this, follow these steps:
    1. Open the .osd file by using a text editor such as Notepad.
    2. Configure the WAIT attribute as follows.
      <DEPENDENCY>
        <SCRIPT TIMING="PRE" EVENT="LAUNCH" PROTECT="TRUE" WAIT="TRUE">
          <SCRIPTBODY></SCRIPTBODY>
        </SCRIPT>
      </DEPENDENCY>
    3. Save the .osd file, and then exit the text editor.
Note The TIMEOUT attribute takes precedence over the ScriptTimeout registry value that you created. If the script does not finish running before the time-out value is reached, you receive the following error message:
Error code: xxxxxx-xxxxxx44-00000B0A

Properties

Article ID: 931250 - Last Review: May 3, 2007 - Revision: 2.0
APPLIES TO
  • Microsoft SoftGrid for Terminal Services
  • Microsoft SoftGrid for Windows Desktops
Keywords: 
kbexpertiseinter kbhowto KB931250

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com