VMware Template Build for Windows 7 - rharmonson/richtech GitHub Wiki
#(DRAFT) VMware Template Build: Windows 7
##Optimize Windows Virtual Machine Performance (General)
- Create a new virtual machine using hardware version 9 for portability and management via vsphere client. You can always upgrade the hardware version to 10, but there is no downgrade option; it can be done but it is a nuisance.
- At creation, remove unwanted devices; reduces cpu overhead.
- Boot to VM bios and disable unwanted devices including 1394, serial, parrallel, and floppy if not needed.
- Is a boot delay desired? If so, edit vmx and add bios.bootDelay = "10000" where 10000 is the max value and 10 secs.
- Complete base operating installation.
- Install VMware Tools (Complete) or View agent or ..
- Install operating system updates.
- Review device manager and disable devices if appropriate.
- Explore.exe, Organize, View, deselect "Hide empty drives.." and "Hide extensions.."
- CP, Display properties, Adjust resolution: 1366x768
- CP, Display properties, Adjust resolution, Advanced Settings, Troubleshoot, Change Settings: Verify "Full" Hardare acceleration.
- CP, Personalization properties: use basic theme.
- CP, Personalization properties: Desktop background to solid color.
- CP, Personalization properties: no screen saver.
- CP, Performance Information and Tools, Adjust visual effects: Adjust for best performance.
- CP, Programs, Turn Windows features on or off: turn off Windows Gadget Platform, Tablet PC Components, Windows Search(?), media features (DVD Maker, Media Center, Media Player), Print and Document Services, ..
- If using Media Player, open and accept the default settings.
- CP, Services: Disable Windows Defender (step not needed if previous step was done).
- CP, Windows Updates, Turn automatic updating on or off, Never check for updates, deselect "Give me recommended updates.." and "Allow all user..".
- CP, Internet Options, Content, Setting under "Feed and Web Slice Settings", Deselect Automatic check feeds .. (default already?)
- Services: Disable Windows Indexing via services.msc and setting "Windows Search" to Disabled. If you turn off Windows Search, this step is not needed.
- CP, Windows Defender, Options, Administrator: Deselect Use this program
- Services: Disable Diagnostic Policy Service
- Services: Disable Superfetch
- System properties, System protection: Delete and disable System Protection. verify hardware acceleration is enabled.
- Sound properties, Sounds: Sound scheme to "No Sounds"
- Power Options: Use "High performance" and change power plan setting to "Never" Turn off the display.
- Troubleshooting properties, Change settings: Computer maintenance to Off.
- Install applications; bginfo, rsat, 7z, ccleaner, notepadpp, sumatrapdf, etc.
- Run Disk Cleanup, cleanmgr.exe, to remove temporary files, empty the Recycle Bin, and remove system files and other items that are no longer needed.
- Run Disk Defragmenter,
dfrgui.exe
, to rearrange fragmented data. - Delete any hidden uninstall folders in C:\Windows, such $NtUninstallKB893756$.
- Delete all event logs. Using powershell,
wevtutil el | Foreach-Object {wevtutil cl "$_"}
- Task Scheduler (
taskschd.msc
), Microsoft, Windows, Defrag: Disable, Windows Defender: Disable, Application Experience: Disable (all) Customer Experience: Disable (all), Registry: Disable, SystemRestore: Disable .. - Disable IPv6.
- bginfo: update registry for windows 7+ to run at logon.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"BGInfo"="c:\\install\\bginfo\\bginfo.cmd"
- Use the File System Utility,
fsutil
, command to disable the setting that keeps track of the last time a file was accessed.
fsutil behavior set disablelastaccess 1
- Directly edit the registry,
regedit.exe
and change theTimeOutValue
REG_DWORD inHKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Disk
to0x000000be(190)
. Alternatively create a .reg file, open, and merge.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Disk]
"TimeOutValue"=dword:000000be
regedit.exe
and update as show below or crate a .reg file to open and merge.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnableSuperfetch"=dword:00000000
"EnablePrefetcher"=dword:00000000
- Prevent removal of VMware Tools; specifically mouse.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Settings\sppnp]
"DoNotCleanUpNonPresentDevices"=dword:00000000
"PersistAllDeviceInstalls"=dword:00000001
- Server Does Not Use All Bandwidth Available When Streaming Files with Bit Rates over 100 Kbps.
http://support.microsoft.com/kb/235257/en-us
Directly edit the registry at HKLM\System\CurrentControlSet\Services\Afd\Parameters
or create a file.reg with the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\AFD\Parameters]
"FastSendDatagramThreshold"=dword:000005dc
Open file and merge into the registry.
<If users are going to play full-screen videos or run 3D applications on desktops that run in a vSphere 5.1 environment, follow the instructions to modify the registry described in Microsoft KB 235257.
<The Microsoft KB is titled "Server Does Not Use All Bandwidth Available When Streaming Files with Bit Rates over 100 Kbps" and is located at http://support.microsoft.com/kb/235257. Restart the virtual machine to enable the modified registry setting to take effect.
<Without this optimization, brief freezes can occur, or the videos can stutter.