Hotfix Recommendations for Windows 2008 XenApp Servers Streamed with Provisioning Server 5.1

I did a migration last week at a clients site from Windows 2003 Presentation Server 4.5, Provisioning Server 4.5 and Web Interface 4.6 to Windows 2008 XenApp 5, Provisioning Server 5.1a and Web Interface 5.

During the image build for Windows 2008 XenApp I had a few issue that were resolved by installing these 5 Windows 2008 hot fixes from Microsoft.

Advertisement

Upgrading Citrix XenDesktop Virtual Desktop Agent with Citrix Password Manager Agent

I updated the XenDesktop Virtual Desktop Agent from 2.0 to the latest build of 2.1 at a client’s site today. After the upgrade the Citrix Password Manager Agent stopped working properly. It would connect to AD at login and appear OK but when an application configured for Password Manager was opened the credentials were not submitted.

Here is what I did to fix this.

  1. Tried updateting the Password Manager Agent from 4.6.93 to 4.6.94. This didn’t work.
  2. Uninstalled the Password Manager Agent and rebooted.
  3. Uninstalled the Virtual Desktop Agent and rebooted.
  4. Installed the Virtual Desktop Agent and rebooted.
  5. Installed the Password Manager Agent and rebooted. This fixed the issue.

From now on when updating the VDA uninstall both VDA and Password Manager Agent then reinstall the VDA and then the Password Managaer Agent.

How to build and Optimize a Windows XP Image for XenDesktop

1. Use a volume license Windows XP ISO that already has SP2/SP3 on it.

2. Build a new VM that has at least 512 MB and a 6 – 8 GB drive. You may need more or less depending the applications that will be installed.

3. Attach the Windows XP ISO to the CD/DVD drive and set it to connect at power on.

4. Attach the Buslogic driver floppy image “/vmimages/floppies/vmscsi-1.2.0.2.flp” to the Floppy drive.
clip_image002

5. On the VM Edit Settings window go to the Options tab and in the General section uncheck the Enable logging check box.
clip_image004

6. Go to the Boot Options section and check the box to force going into the BIOS on next boot.
clip_image006

7. Power on the VM and when the BIOS appears go to Advanced, I/O Device Configuration.
clip_image008

8. Disable the Serial and Parallel ports.
clip_image010

9. Go to the Boot menu and set the CD-ROM first in the boot order.
clip_image012

10. Save and exit.

11. When the install starts press the F6 key to load a mass storage driver.

12. Press S to load the Buslogic driver.
clip_image014

13. Press Enter to choose the driver.
clip_image016

14. Continue installing Windows XP.

15. During the install you will get a couple of driver install prompts, choose Yes to both.
clip_image018

16. On first boot after the initial install the startup wizard will run. On the 2nd screen choose “Not right now”
clip_image020

17. Choose, “No” and then choose Skip at the bottom.
clip_image022

18. Choose “No, not at this time.”
clip_image024

19. Type “temp” for your name.
clip_image026

20. Go to VM, Edit settings, disconnect the CD and floppy, set them both to Client device.
clip_image028

21. Install VMware Tools, choose to do a Custom install.
clip_image030

22. Do not install the Shared Folders driver.
clip_image032

23. After the install completes reboot.

24. Right-click on the desktop and go to display properties, set the theme to Windows Classic.
clip_image034

25. Set the Screen Saver to none. Click Apply.

26. Go to My Computer properties, Advanced tab, Performance settings. Choose “Adjust for best performance”, click Apply.
clip_image036

27. Go to Startup and Recovery settings. Set the debugging information to none, uncheck the “Send an administrative alert”. Click OK.
clip_image038

28. Go to Error Reporting and choose Disable error reporting and uncheck the notify box.
clip_image040

29. Go to the Remote tab and uncheck both boxes. Click Apply.
clip_image042

30. Go to the Automatic Updates tab and turn off automatic updates. Click Apply.
clip_image044

31. Go to the System Restore tab and turn off System Restore. Click Apply.
clip_image046

32. Click OK, to exit the System Properties window.

33. Right-click on the taskbar and go to properties. Go to the Start Menu tab and choose Classic Start Menu, click apply, click Customize.
clip_image048

34. Scroll to the bottom of the Advanced Start menu options and check the box for “Show Small Icons in Start menu” and uncheck the “Use Personalized Menus” box. Click OK, and click OK.
clip_image050

35. Right-click on the desktop and go to properties. Go to the Desktop tab and click Customize Desktop, uncheck the Run Desktop Cleanup Wizard every 60 days, click OK, click Apply.
clip_image052

36. Go to the Appearance tab and click Advanced, uncheck all of the boxes and click OK. Click OK.
clip_image054

37. Right-click on the taskbar, go to Toolbars and choose Quick Launch.
clip_image056

38. Open the Control Panel, go to the View menu, choose Status bar and List.
clip_image058

39. Right-click on the Go button and uncheck the Go Button.
clip_image060

40. Right-click on the toolbar and choose Customize, set the Text options to No text labels and set Icon options to Small icons.
clip_image062

41. Go to Tools, Folder Options, View tab and check/uncheck the boxes below.
clip_image064
clip_image066

42. Click Apply, click Apply to All Folders and choose Yes.

43. Go to Add/Remove Programs, Add/Remove Windows Components. Go to Accessories and Utilities, remove Games and remove the optional components shown below.
clip_image068

44. Remove MSN Explorer, Networking Services, Outlook Express and Windows Messenger.
clip_image070

45. Choose No to reboot now.

46. Open User Accounts, click Change the way users log on or off, Uncheck both boxes and click apply.
clip_image072

47. Right-click on the taskbar, go to properties and check the box to Display Log Off.
clip_image074

48. Right-click on the Start button and choose Open All Users. Delete the three shortcuts for Set Program Access and Defaults, Windows Catalog and Window Update.
clip_image076

49. Go to Control Panel, Administrative Tools, Right-click Computer Management and choose Author.
clip_image078

50. Maximize the window, Expand Services and Applications, select Services, expand the Name column, go to File Save, choose Yes to the prompt. Close Computer Management.
clip_image080

51. Open Computer Management again, go to Services, Stop and disable these services.

a. Computer Browser

b. Error Reporting Service

c. Help and Support

d. Security Center

e. Task Scheduler

f. SSDP Discovery Service

g. Themes

h. Windows Firewall/Internet Connection Sharing (ICS)

i. Wireless Zero Configuration

52. Go to Start, Run and type regedit, go to this key, HKEY_USERS\.DEFAULT\Control Panel\Desktop and delete the SCRNSAVE.EXE name.
clip_image082

53. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters, right-click on Parameters and choose New, DWORD value, type DisableTaskOffload and set the Data to 1.
clip_image084

54. Go to HKEY_CURRENT_USER\Control Panel\Desktop and change the MenuShowDelay to 0.
clip_image086

55. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control, right-click on Control and choose New DWORD value, type ServicesPipeTimeout and set the Data to 120000 decimal.
clip_image088

56. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server and add a new DWORD value called AllowRemoteRPC and set it to 1. This will allow shadowing of the XenDesktop session for remote support. Once this key is set you can shadow a session by running this command “shadow 0 /server:VMNAME.
clip_image090

57. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run and delete the VMware Tools name.
clip_image092

58. Go to Start, Run and type cmd to open the CMD prompt. Type “FSUTIL behavior set disablelastaccess 1” and press Enter.
clip_image094

59. Type “sfc /purgecache”, press enter, type “sfc /cachesize=0” and press enter. Type exit.
clip_image096

60. Reboot and login as temp.

61. Click on the Windows XP Tour in the system tray, click Cancel.
clip_image098

62. Go to Start, Settings, Printers and Faxes. Go to File, Server Properties, Advanced tab and uncheck all of the boxes.
clip_image100

63. Open Internet Explorer, go to Tools, Windows Update. Install the Microsoft Update by clicking the Go button.
clip_image102

64. Install all High Priority updates and under Software, Optional install Root Certificates Update.
clip_image104

65. After the updates complete, reboot.

66. Login as temp.

67. Run Microsoft Update from the Start menu to get any remaining updates.

68. Right-click on the Language bar and choose Settings.
clip_image106

69. Go to the Advanced tab and turn off advanced text services.
clip_image108

70. Go to the cmd prompt and run this command to unregister the language bar.
“Regsvr32.exe /u msutb.dll”
clip_image110

71. Right-click on Internet Explorer on the desktop and go to properties.

72. Set the Home page to blank and click Delete and then click Delete all, check the box to Also delete files.
clip_image112

73. Go to the Advanced tab and check/uncheck the boxes below
clip_image114
clip_image116

74. Open Internet Explorer and go through the first time startup wizard, choose to keep

75. Change the default search provider from Live Search to Google.
clip_image118
clip_image120
clip_image122

76. Go to My Computer properties, Advanced tab, Performance settings, Advanced tab and set the page file on the C drive to No paging file, click Set. Do not reboot yet.
clip_image124

77. Download and install the User Profile Hive Cleanup tool. The fastest way to find this tool is to search Google for uphclean.
clip_image126

78. Reboot and login as Administrator.

79. Open My Computer, go to Tools, Folder options and set the view option to show hidden files and folders.
clip_image128

80. Right-click on My Computer, go to Properties, Advanced, User Profiles Settings, select temp, copy to, browse to c:\documents and settings\default user, change Permitted to use to Authenticated users. Click OK, Click Yes to the confirm copy question.
clip_image130

81. Log out and login as temp.

82. Delete the local administrators profile from the system properties tool.
clip_image132

83. Log out and login as Administrator.

84. Delete the temp user account and user profile.

85. Go to C:\WINDOWS and delete all the folders that start and end with a $
clip_image134

86. Open C:\Documents and Settings\Default User and delete the temp’s Documents folder.
clip_image136

87. Defragment the C drive.
clip_image138

88. Power down the VM and convert it to a template.

89. Use this template to deploy an XP VM for use with any VDI (XenDesktop, VMware) or use it for any purpose that an XM VM is needed.