
2 changed files with 39 additions and 34 deletions
@ -1,34 +1,34 @@ |
|||||
# Description: |
# Description: |
||||
# This script disables unwanted Windows services. If you do not want to disable |
# This script disables unwanted Windows services. If you do not want to disable |
||||
# certain services comment out the corresponding lines below. |
# certain services comment out the corresponding lines below. |
||||
|
|
||||
$services = @( |
$services = @( |
||||
"diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service |
"diagnosticshub.standardcollector.service" # Microsoft (R) Diagnostics Hub Standard Collector Service |
||||
"DiagTrack" # Diagnostics Tracking Service |
"DiagTrack" # Diagnostics Tracking Service |
||||
"dmwappushservice" # WAP Push Message Routing Service |
"dmwappushservice" # WAP Push Message Routing Service (see known issues) |
||||
"HomeGroupListener" # HomeGroup Listener |
"HomeGroupListener" # HomeGroup Listener |
||||
"HomeGroupProvider" # HomeGroup Provider |
"HomeGroupProvider" # HomeGroup Provider |
||||
"lfsvc" # Geolocation Service |
"lfsvc" # Geolocation Service |
||||
"MapsBroker" # Downloaded Maps Manager |
"MapsBroker" # Downloaded Maps Manager |
||||
"NetTcpPortSharing" # Net.Tcp Port Sharing Service |
"NetTcpPortSharing" # Net.Tcp Port Sharing Service |
||||
"RemoteAccess" # Routing and Remote Access |
"RemoteAccess" # Routing and Remote Access |
||||
"RemoteRegistry" # Remote Registry |
"RemoteRegistry" # Remote Registry |
||||
"SharedAccess" # Internet Connection Sharing (ICS) |
"SharedAccess" # Internet Connection Sharing (ICS) |
||||
"TrkWks" # Distributed Link Tracking Client |
"TrkWks" # Distributed Link Tracking Client |
||||
"WbioSrvc" # Windows Biometric Service |
"WbioSrvc" # Windows Biometric Service |
||||
#"WlanSvc" # WLAN AutoConfig |
#"WlanSvc" # WLAN AutoConfig |
||||
"WMPNetworkSvc" # Windows Media Player Network Sharing Service |
"WMPNetworkSvc" # Windows Media Player Network Sharing Service |
||||
"wscsvc" # Windows Security Center Service |
"wscsvc" # Windows Security Center Service |
||||
#"WSearch" # Windows Search |
#"WSearch" # Windows Search |
||||
"XblAuthManager" # Xbox Live Auth Manager |
"XblAuthManager" # Xbox Live Auth Manager |
||||
"XblGameSave" # Xbox Live Game Save Service |
"XblGameSave" # Xbox Live Game Save Service |
||||
"XboxNetApiSvc" # Xbox Live Networking Service |
"XboxNetApiSvc" # Xbox Live Networking Service |
||||
|
|
||||
# Services which cannot be disabled |
# Services which cannot be disabled |
||||
#"WdNisSvc" |
#"WdNisSvc" |
||||
) |
) |
||||
|
|
||||
foreach ($service in $services) { |
foreach ($service in $services) { |
||||
echo "Trying to disable $service" |
echo "Trying to disable $service" |
||||
Get-Service -Name $service | Set-Service -StartupType Disabled |
Get-Service -Name $service | Set-Service -StartupType Disabled |
||||
} |
} |
||||
|
Loading…
Reference in new issue