Microsoft KB Archive/931092

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 09:26, 21 July 2020 by X010 (talk | contribs) (Text replacement - ">" to ">")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


Settings that are made in a Command Prompt window are not retained in Microsoft SoftGrid

Article ID: 931092

Article Last Modified on 5/14/2007



APPLIES TO

  • Microsoft SoftGrid for Terminal Services
  • Microsoft SoftGrid for Windows Desktops



SYMPTOMS

Settings that are made in a Command Prompt window are not retained in Microsoft SoftGrid. These settings include settings for colors, for fonts, and for sizes.

CAUSE

This problem occurs because the Command Prompt window settings in the Virtual Registry are not available when you open the window.

WORKAROUND

To work around this issue, you can create a POST SHUTDOWN script to export the command prompt settings from the Virtual Registry when you exit the Command Prompt window. You can then create a PRE LAUNCH script to import these settings into the local registry when you open the Command Prompt window. This action lets the window use the Virtual Registry setting from the local registry.

The following example scripts must be added to the .osd file for the Command Prompt window between the DEPENDENCY element and the and /DEPENDENCY element.

<SCRIPT EVENT="LAUNCH" TIMING="PRE" PROTECT="FALSE" WAIT="TRUE">
    <HREF>regedit /s "%TEMP%\SoftGrid_CMD_Settings.reg"</HREF>
</SCRIPT>
<SCRIPT EVENT="SHUTDOWN" TIMING="POST" PROTECT="TRUE" WAIT="TRUE">
    <HREF>regedit /s /e "%TEMP%\SoftGrid_CMD_Settings.reg" "HKEY_CURRENT_USER\Console"</HREF>
</SCRIPT>

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Keywords: kbtshoot kbexpertiseinter KB931092