Thursday, January 13, 2011

Internet Branding Policy delay

Logons Hang at "Applying Internet Explorer Branding Policy" When Connecting to XenApp Servers with Internet Explorer 7

Technical resolution
  • During login to Citrix published applications, the launch process “hangs” for 20 seconds on the Branding IE Policy. This delays the launch of the application.
    • It's a known issue of Microsoft Internet Explorer 7 and they have alredy released a hotfix(KB941158) for that . Click here for details.
    • The hotfix is only applicable for Citrix Standard build which means Windows 2003 Server SP2 Enterprise Edition with Citrix Presentation Server (XenApp) 4.5 Rollup 5 with Internet Explorer 7 .
    • They have different hotfix for Windows 2003 X64 or Servers running IE 8.
    Patch Installtion
  • Follow the below steps to install and enable the patch:
    • Obtain the patch from here and install it on the target server with default setting.
    • Import the below registry key and apply it on the target server . Make sure you have full backup of registry.
    • Reboot the server.

To enable this hotfix, follow these steps:
  1. Click Start, click Run, type regedit, and then press ENTER.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl
  3. On the Edit menu, point to New, and then click Key.
  4. Type the following name, and then press ENTER:
    FEATURE_PARSING_BRANDING_CMDLINE_FLAGS_KB941158
    Note We recommend that you type this value. Please remove trailing spaces if you plan to copy and paste this registry value.
  5. On the Edit menu, point to New, and then click DWORD Value.
  6. Type the asterisk symbol (*), and then press ENTER.
  7. On the Edit menu, click Modify.
  8. Type 1, and then click OK.
  9. Exit Registry Editor.

To do the above work useing batch script , save the below code as a batch and run it on the target server. (Make sure KB and batch script should be in a same folder.)

"cls
echo
ECHO.
ECHO installing KB941158
change user /install
IE7-WindowsServer2003-KB941158-x86-ENU.exe /passive /norestart
pause
ECHO.
ECHO Adding registry key

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\MAIN\FeatureControl\FEATURE_PARSING_BRANDING_CMDLINE_FLAGS_KB941158" /v "*" /d "1" /t REG_DWORD /f
change user /execute
quser
pause
logoff

"
If you are running the batch file from network share then plesae chnage the code a bit . Replace the

IE7-WindowsServer2003-KB941158-x86-ENU.exe /passive /norestart
line with

start file://%3cnetwork-share%3e/IE7-WindowsServer2003-KB941158-x86-ENU.exe /passive /norestart

No comments:

Post a Comment