diff --git a/README.md b/README.md index 6721328..596d1a2 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,11 @@ has been discovered by BK from Atlanta: You may now disable the GeoLocation service again, the search box should remain functional. +### Sysprep will hang + +If you are deploying images with MDT and running these scripts, the sysprep +step will hang unless `dmwappushserivce` is active. + ## Interactivity The scripts are designed to run without any user-interaction. Modify them diff --git a/scripts/disable-services.ps1 b/scripts/disable-services.ps1 index 4af0d22..8aee7c5 100644 --- a/scripts/disable-services.ps1 +++ b/scripts/disable-services.ps1 @@ -1,34 +1,34 @@ -# Description: -# This script disables unwanted Windows services. If you do not want to disable -# certain services comment out the corresponding lines below. - -$services = @( - "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service - "DiagTrack" # Diagnostics Tracking Service - "dmwappushservice" # WAP Push Message Routing Service - "HomeGroupListener" # HomeGroup Listener - "HomeGroupProvider" # HomeGroup Provider - "lfsvc" # Geolocation Service - "MapsBroker" # Downloaded Maps Manager - "NetTcpPortSharing" # Net.Tcp Port Sharing Service - "RemoteAccess" # Routing and Remote Access - "RemoteRegistry" # Remote Registry - "SharedAccess" # Internet Connection Sharing (ICS) - "TrkWks" # Distributed Link Tracking Client - "WbioSrvc" # Windows Biometric Service - #"WlanSvc" # WLAN AutoConfig - "WMPNetworkSvc" # Windows Media Player Network Sharing Service - "wscsvc" # Windows Security Center Service - #"WSearch" # Windows Search - "XblAuthManager" # Xbox Live Auth Manager - "XblGameSave" # Xbox Live Game Save Service - "XboxNetApiSvc" # Xbox Live Networking Service - - # Services which cannot be disabled - #"WdNisSvc" -) - -foreach ($service in $services) { - echo "Trying to disable $service" - Get-Service -Name $service | Set-Service -StartupType Disabled -} +# Description: +# This script disables unwanted Windows services. If you do not want to disable +# certain services comment out the corresponding lines below. + +$services = @( + "diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service + "DiagTrack" # Diagnostics Tracking Service + "dmwappushservice" # WAP Push Message Routing Service (see known issues) + "HomeGroupListener" # HomeGroup Listener + "HomeGroupProvider" # HomeGroup Provider + "lfsvc" # Geolocation Service + "MapsBroker" # Downloaded Maps Manager + "NetTcpPortSharing" # Net.Tcp Port Sharing Service + "RemoteAccess" # Routing and Remote Access + "RemoteRegistry" # Remote Registry + "SharedAccess" # Internet Connection Sharing (ICS) + "TrkWks" # Distributed Link Tracking Client + "WbioSrvc" # Windows Biometric Service + #"WlanSvc" # WLAN AutoConfig + "WMPNetworkSvc" # Windows Media Player Network Sharing Service + "wscsvc" # Windows Security Center Service + #"WSearch" # Windows Search + "XblAuthManager" # Xbox Live Auth Manager + "XblGameSave" # Xbox Live Game Save Service + "XboxNetApiSvc" # Xbox Live Networking Service + + # Services which cannot be disabled + #"WdNisSvc" +) + +foreach ($service in $services) { + echo "Trying to disable $service" + Get-Service -Name $service | Set-Service -StartupType Disabled +}