Microsoft KB Archive/931250

= 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 ID: 931250

Article Last Modified on 5/3/2007

-

APPLIES TO


 * Microsoft SoftGrid for Terminal Services
 * Microsoft SoftGrid for Windows Desktops

-



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



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.



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:  Open the .osd file by using a text editor such as Notepad. In the SCRIPT element, type TIMEOUT=&quot;&quot; .  In the TIMEOUT=&quot;&quot; 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=&quot;&quot; value as follows.      Note If you set the value to 0, the script will wait indefinitely.  Save the .osd file, and then exit the text editor.</li></ol>

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. <ol> Click Start, click Run, type regedit in the Open box, and then click OK.</li> Expand the following registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Softricity\SoftGrid Client\CurrentVersion\Configuration

</li> Right-click Configuration, point to New, and then click DWORD Value.</li> For New Value #1, type ScriptTimeout .</li> Right-click ScriptTimeout, and then click Modify.</li> For Base, click Decimal.</li> For Value data, type the number of seconds that you want the script to wait before it times out.</li> Exit Registry Editor.</li> 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: <ol style="list-style-type: lower-alpha;"> Open the .osd file by using a text editor such as Notepad.</li>  Configure the WAIT attribute as follows.  <SCRIPT TIMING=&quot;PRE&quot; EVENT=&quot;LAUNCH&quot; PROTECT=&quot;TRUE&quot; WAIT=&quot;TRUE&quot;> </SCRIPTBODY> </SCRIPT> </DEPENDENCY> </li> Save the .osd file, and then exit the text editor.</li></ol> </li></ol>

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: 44-00000B0A

Keywords: kbexpertiseinter kbhowto KB931250

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.