Creating a Windows 7 Template for VMWARE View Desktops

First, a couple of minor housekeeping notes.  Most of the things in this list come from 2 places:

VMWARE’s Windows 7 View Optimization Guide
EMC’s Windows 7 View Optimization Guide

Everything else is either things I have come across as fixes for problems I have encountered (and believe me, I have encountered a lot of problems, which is an entire series of upcoming blog posts), or notes to myself to do some things specific to my environment.

The performance of the View Desktops using one of these templates has been nothing short of outstanding. I can say with complete confidence that the View Desktops have been universally regarded as a great improvement by all users in the multiple departments I have rolled them out to, and I have had almost zero issues with performance of the View Desktops created using these templates.

And the usual disclaimer:  This list is not an end all and be all.  Some things might not be a good idea for your specific environment, or might not work at all, so please keep that in mind.

Windows 7 Template

Install Using 8 KB Allocation Size
On the Where Do You Want to Install Windows Dialog screen, hit Shift + F10 and enter the following commands:
1. Diskpart
2. Select disk 0
3. Create partition primary size=400
4. Active
5. Format fs=ntfs label=”System Reserve” quick
6. Create partition primary
7. Format fs=ntfs label=OS unit=8192
8. Assign
9. Exit
Select Disk 0 Partition 2 to install Windows on
Install Windows

Disable UAC

Install VMWARE Tools
1. Enable Time Synchronization 

Activate Windows Using KMS Key

Join to Domain

Install View Agent

Disable Logging
1. Edit VM Settings
2. Options Tab
3. Advanced -> General
4. Uncheck Enable Logging
Boot into Bios
1. Disable Serial/Parallel ports for machines if not needed
Install Updates

Install AV

Install Printer Drivers (If Applicable)

Disable Offline Files
1. Control Panel
2. All Items
3. Sync Center
4. Manage Offline Files
5. Disable

Install Programs

Run Commands.Bat
Notification Settings
1. Hide all except for the network connection
Performance Options
1. Computer Properties
2. Advanced
3. Performance Options
4. Visual Effects, Adjust for Best Performance
5. Advanced
6. Adjust for best performance of Programs
Power Options
1. Select High Performance power option
a. Do not specify a sleep timer
b. Turn off display to never
c. Desktop background settings, slideshow to paused
2. Disable Hibernation
a. From command prompt, powercfg /hibernate off
Change NTFS Behavior
1. Command Prompt
2. Fsutil behavior set disablelastaccess 1
3. Fsutil 8dot3name set 1
Sounds
1. Set sound scheme to no sounds
Windows Programs
1. Open Windows Media Player, use default settings
2. Uninstall indexing service
3. Uninstall tablet PC components
4. Uninstall IE8 (If using ThinApp IE)
Network Adapter
1. Disable IPv6
2. Uninstall QoS Packet Scheduler
3. Uninstall Link Layer Topology Discovery Mapper I/O Driver
4. Uninstall Link Layer Topology Discovery Responder
MSCONFIG
1. On Boot tab, make sure No GUI Boot and Base Video are NOT selected
2. On Startup tab, disable any programs not needed
REGEDIT
1. Time Out Value
a. HKLMSystemCurrent Control SetServicesDisk set to be
b. “TimeOutValue”=dword:000000c8
2. Disable Paging Executive
a. HKLMSystemCurrent Control SetControlSession ManagerMemory ManagementDisablePagingExecutive set to 1
3. DISABLE PREFETCH/SUPERFETCH
a. Regedit
b. HKLMSystemCurrent Control SetControlSession ManagerMemory ManagementPrefetchParameters
c. Set Enable Prefetch/Superfetch to 0
Run Sysinternals Autorun.  
1. Disable anything and everything that is not needed.
Add Symantec Scripts
2. Set service to disabled
3. Create folder on C: called SEP
4. Copy PostSync.bat and PowerOff.bat into this folder
Run Diskcleanup

Run Diskdefrag
1. Enable and start service
2. Disable defrag scheduling
3. Run defrag of C:
4. Disable service
Clear Event Logs

Run ipconfig/release

Shutdown guest OS 

Set video card RAM to 128

Convert to Template