What services to disable to optimize Windows for VDI

In my previous VDI blog post about configuring Windows to work best in a VDI environment I mentioned a few service that should be disabled to improve performance. However a a recent session at Microsoft Management Summit 2013 called Optimizing Windows 8 for Virtual Desktop Infrastructure has provided a substantially longer list of recommend services configuration for VDI.

Below is a list of services as outlined from the session with their recommended configuration. While you don’t “have” to configure all these services doing so will mean that you VDI guests will be running as “lite” as possible meaning you will get higher virtual machine density.

Service Name Default Recommended Details
Application Layer Gateway Service Manual Disabled This service manages mobile broadband (GSM & CDMA) data card/embedded module adapters and connections by auto-configuring the networks. It is strongly recommended that this service be kept running for best user experience of mobile broadband devices.
Background Intelligent Transfer Service Manual Disabled VDI infrastructure is usually connected to fast LAN/WAN links to infrastructure servers hosting data
BitLocker Drive Encryption Service Manual (TS) Disabled BitLocker is not available to be used on a virtual machines
Block Level Backup Engine Service Manual Disabled Service is used to backup data on the workstation – not used for virtual machines
Bluetooth Support Service Manual (TS) Disabled Bluetooth Wireless not supported from a virtual machine
BranchCache Manual Consider This service caches network content from peers on the local subnet.
Computer Browser Manual (TS) Disabled Maintains an updated list of computers on the network and supplies this list to computers designated as browsers.
Device Association Service Manual (TS) Disabled Enables pairing between the system and wired or wireless devices.
Device Setup Manager Manual (TS) Disabled Enables the detection, download and installation of device-related software. If this service is disabled, devices may be configured with outdated software, and may not work correctly.
Diagnostic Policy Service Automatic Disabled The Diagnostic Policy Service enables problem detection, troubleshooting and resolution for Windows components. If this service is stopped, diagnostics will no longer function.
Diagnostic Service Host Manual Disabled The Diagnostic Service Host is used by the Diagnostic Policy Service to host diagnostics that need to run in a Local Service context. If this service is stopped, any diagnostics that depend on it will no longer function.
Distributed Link Tracking Client Automatic Consider Tracks NTFS links locally and across the network (but only if the service is also running on the remote system)
Encrypting File System (EFS) Manual (TS) Consider Provides the core file encryption technology used to store encrypted files on NTFS file system volumes. If this service is stopped or disabled, applications will be unable to access encrypted files.
Extensible Authentication Protocol Manual Consider The Extensible Authentication Protocol (EAP) service provides network authentication in such scenarios as 802.1x wired and wireless, VPN, and Network Access Protection (NAP).
Family Safety Manual Disabled This service is a stub for Windows Parental Control functionality that existed in Vista. It is provided for backward compatibility only.
Fax Manual Disabled Enables you to send and receive faxes, utilizing fax resources available on this computer or on the network.
Function Discovery Resource Publication Manual Disabled Publishes this computer and resources attached to this computer so they can be discovered over the network. If this service is stopped, network resources will no longer be published and they will not be discovered by other computers on the network.
File History Service Manual (TS) Consider Protects user files from accidental loss by copying them to a backup location
Home Group Listener Manual Disabled Used to establish Home Groups, not used with virtual machines in a corporate environment
Home Group Provider Manual (TS) Disabled Used to establish Home Groups, not used with virtual machines in a corporate environment
Internet Connection Sharing (ICS) Disabled Disabled Provides network address translation, addressing, name resolution and/or intrusion prevention services for a home or small office network.
Microsoft Account Sign-in Assistant Manual (TS) Consider Enables user sign-in through Microsoft account identity services. If this service is stopped, users will not be able to logon to the computer with their Microsoft account.
Microsoft iSCSI Initiator Service Manual Disabled iSCSI will not be used on virtual desktops
Microsoft Software Shadow Copy Provider Manual Disabled Manages software-based volume shadow copies taken by the Volume Shadow Copy service. If this service is stopped, software-based volume shadow copies cannot be managed. If this service is disabled, any services that explicitly depend on it will fail to start.
Network List Service Manual Automatic Identifies the networks to which the computer has connected, collects and stores properties for these networks, and notifies applications when these properties change.
Offline Files Manual (TS) Disabled – REQUIRES GPO The Offline Files service performs maintenance activities on the Offline Files cache, responds to user logon and logoff events, implements the internals of the public API, and dispatches interesting events to those interested in Offline Files activities and changes in cache state.
Optimize Drives Manual Disabled Helps the computer run more efficiently by optimizing files on storage drives.
Sensor Monitoring Service Manual (TS) Consider Monitors various sensors in order to expose data and adapt to system and user state. If this service is stopped or disabled, the display brightness will not adapt to lighting conditions. Stopping this service may affect other system functionality and features as well.
Secure Socket Tunneling Protocol Service Manual Disabled This service publishes a machine name using the Peer Name Resolution Protocol. Configuration is managed via the netsh context ‘p2p pnrp peer’
Shell Hardware Detection Automatic Disabled Provides notifications for AutoPlay hardware events.
SNMP Trap Manual Disabled Receives trap messages generated by local or remote Simple Network Management Protocol (SNMP) agents and forwards the messages to SNMP management programs running on this computer. If this service is stopped, SNMP-based programs on this computer will not receive SNMP trap messages. If this service is disabled, any services that explicitly depend on it will fail to start.
SSDP Discovery Manual Disabled Discovers networked devices and services that use the SSDP discovery protocol, such as UPnP devices. Also announces SSDP devices and services running on the local computer. If this service is stopped, SSDP-based devices will not be discovered. If this service is disabled, any services that explicitly depend on it will fail to start.
Telephony Manual Disabled Provides Telephony API (TAPI) support for programs that control telephony devices on the local computer and, through the LAN, on servers that are also running the service.
Themes Automatic Consider Provides user experience theme management.
UPnP Device Host Manual Disabled Allows UPnP devices to be hosted on this computer. If this service is stopped, any hosted UPnP devices will stop functioning and no additional hosted devices can be added. If this service is disabled, any services that explicitly depend on it will fail to start.
Volume Shadow Copy Manual Consider Manages and implements Volume Shadow Copies used for backup and other purposes. If this service is stopped, shadow copies will be unavailable for backup and the backup may fail. If this service is disabled, any services that explicitly depend on it will fail to start.
Windows Backup Manual Disabled Provides Windows Backup and Restore capabilities.
Windows Color System Manual Disabled The WcsPlugInService service hosts third-party Windows Color System color device model and gamut map model plug-in modules.
Windows Connect Now – Config Registrar Manual Disable WCNCSVC hosts the Windows Connect Now Configuration which is Microsoft’s Implementation of Wi-Fi Protected Setup (WPS) protocol.
Windows Defender Automatic (TS) Consider – REQUIRES GPO Helps protect users from malware and other potentially unwanted software
Windows Error Reporting Service Manual (TS) Disabled Allows errors to be reported when programs stop working or responding and allows existing solutions to be delivered. Also allows logs to be generated for diagnostic and repair services.
Windows Media Player Network Sharing Service Manual Disabled Shares Windows Media Player libraries to other networked players and media devices using Universal Plug and Play
Windows Search Automatic (Delayed) Consider Provides content indexing, property caching, and search results for files, e-mail, and other content.
WLAN AutoConfig Manual Disabled The WLANSVC service provides the logic required to configure, discover, connect to, and disconnect from a wireless local area network (WLAN) as defined by IEEE 802.11 standards.
WWAN AutoConfig Manual Disabled This service manages mobile broadband (GSM & CDMA) data card/embedded module adapters and connections by auto-configuring the networks. It is strongly recommended that this service be kept running for best user experience of mobile broadband devices.

 

To make it really easy for you to apply this to your environment I have done all the hard work and created a Group Policy Preference template with all the above services listed. Simply download the below file to the computer you edit your group policy object on and drag it into the Group Policy Preferences services section of your GPO.

Note: All services set to “Consider” do exist but their status will not be changed.

WARNING!!!! Group Policy Preferences will TATOO all changes. Meaning one you have applied this setting it WILL NOT rollback the services configuration to default. So… Apply carefully and after proper testing.

Once you have applied the template you can see a drop in ram usage but as well as that you will prevent 36 schedule system tasks from running thus milking the last drops of performance out of your VDI environment.

Listen

If you like this article then please share it below:

IP Address Range filter for Item Level Targeting is broken in Windows 8

LANI have just come across an issue with the Group Policy Item Level Targeting feature in Windows 8 with relation to the IP Address Range filter option. Namely that computers in an IP Address range are evaluations are not passed even though they are within the IP Address range…

Update: This is a confirmed bug with Windows 8

According the the forum post the following ranges have the following results however I suspect that there are more combinations that might not work correctly.

0.0.0.0                ->   255.255.255.255    PASSED

1.0.0.0                ->   255.255.255.255    PASSED

2.0.0.0                ->   255.255.255.255    FAILED

1.168.156.0        ->   255.255.255.255    PASSED

1.168.156.0        ->   192.255.255.255    PASSED

1.168.156.0        ->   192.168.156.255    PASSED

2.168.156.0        ->   255.255.255.255    FAILED

2.168.156.0        ->   192.168.156.255    FAILED

192.0.0.0            ->   255.255.255.255    FAILED

192.168.156.0    ->   255.255.255.255    FAILED

192.168.156.0    ->   192.168.156.255    FAILED

 

Taking a deeper look at the issues I below are the details log of a Windows 8 computer with an IP of 192.0.0.11. As you can see with the IP Filter is set to 192.0.0.0 to 255.255.255.255 it evaluates to false even though it SHOULD evaluate as true as its IP is between these two addresses.

 

image

Compared to a logging on to a Windows 7 computer with an IP of 192.0.0.12 the same IP filter with the same policy applied evaluate as passed.

image

In both cases the computer accounts were in the same OU and I was logged on with the same user account.

Then… after changing the IP Address Filter to 1.0.0.0 to 255.255.255.255 the policy evaluates as TRUE again on Windows 8.

image

Admittedly that the IP Address filters that are having issues evaluating are not all that practical (1.0.0.0 to 255.255.255.255). But it would seem there is a problem with how the IP Address filter evaluation works in Windows 8.

My only recommendation for now is that if you have any IP Filtered Group Policy Preferences applied to a Windows 8 computer I would recommend that you manually verify they are working correctly.

Listen

If you like this article then please share it below:

Missing Internet Explorer Maintenance option from GPMC with Windows 7 / 2008 R2

IE9answerOne of the changes with Windows 8 and Group Policy was that the Internet Explorer Maintenance section of GPMC was removed from under Windows Settings (see Interesting Change to Group Policy in Server 2012/Windows 8). However people have been noticing that the same Internet Explorer Maintenance option is removed from GPMC when they now install IE 10 on Windows 7 / Serve 2008 R2 (See image below).

image

So if you still use the Internet Explorer Maintenance section in Group Policy be aware that you will lose access to the ability to edit these policy setting if you update to IE10.

Alternatively you can simply reset the Internet Explorer Maintenance settings (see How to remove imported Internet Explorer Group Policy Settings) and just use the standard Group Policy Administrative Templates or Group Policy preferences. In which case you will also want to read my other post about controlling IE Site Zone mappings using preferences How to configuring IE Site Zone mapping using group policy without locking out the user 

TIP: I have not verified this but some people say that un-installing IE10 will restore the Internet Explore Maintenance option in GPMC

Warning: Some people are having issues with just removing IE10. So if you are having issues check out the comment in Darren Mar-Elia blog post WARNING: Installing IE 10 on your Windows 7 Workstation Removes IE Maintenance Policy from Group Policy

Listen

If you like this article then please share it below:

Disappearing Folder Redirection Issues with Windows 7

imageThanks to a tip off from fellow MVP Darren Mar-Elia about fairly common issues with Folder Redirection in Windows 7. In short there is a pretty significant issue in Folder Redirection if configured incorrectly that could result in a loss of data for users. There is a mitigation of this issues however this is broken in Windows 7 Service Pack 1. This form post on the SDM Software web site goes into some very specific details about the problem but  below I am going to attempt to summaries the problem and fix for the issue so you can get Folder Redirection working more reliably in your organisation…

Folder Redirection Problem

You have Windows 7 with folder redirection enabled with the “Move contents to new location” option enabled and you then configure a new UNC path for redirection. This NEW path is simply a variation of the path the server that actually points to the exact same location. e.g. \\servername\share to \\DFSNAME\Share . Then when the computer tries to moves the contents of folder to the new (same) location it deletes what it thinks is the old (same) location and thus the users files are deleted. This is BAD! (I hope you have a recent backup)

How to prevent the Folder Redirection from deleting files on move

So to prevent this from happening in Windows there is a Group Policy setting called Verify old and new Folder Redirection targets point to the same share before redirecting that checks if the new and old locations are the same before moving the files. In theory if it detects the source and destination are the same it only move the registry pointer to the new location on the server and leaves all the files in place… However… In Windows 7 Service Pack 1 this option is broken…. BOTHER!!!

Side Note: As pointed out in the forum post it is CRAZY that this is NOT the default behaviour as if you do not configure this option you could inadvertently delete user data. So… Even if this problem does not affect you I would still be seriously be considering enabling this option for your environment.

How to fix the Verify Old and New Folder redirection option

Thankfully earlier this month Microsoft released a KB that fixes this issue https://support.microsoft.com/kb/2799904 . So you can now implement Folder Redirection in your environment configured in a way that will not result in a loss of data…. Phew…

So what does all this mean… ?

1. If you have folder redirection enable, it is (in my opinion) MANDATORY to enable the Verify old and new Folder Redirection targets point to the same share before redirecting option to prevent the possibility of losing user data.

Thanks again to Darren for the tip… and I hope this helps in your environment in avoiding the issues with using  folder redirection.

2. But you also need to apply KB2799904 to fix the Verify Old and New Folder Redirection Target option if you are running Windows 7 Service Pack 1

Listen

If you like this article then please share it below:

See me talk about Group Policy on TechNet Edge.

edgeOn my recent trip to the Microsoft MVP Summit I was able to catch up with Rick Claus and record an episode of TechNet Edge. In this video do some quick deep dives into Group Policy with Windows 8. So sit back and watch the very informative video embedded below…

Listen

If you like this article then please share it below: