Alex Hirsch
7 years ago
2 changed files with 39 additions and 34 deletions
@ -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 |
|||
} |
|||
|
Loading…
Reference in new issue