Browse Source

Added a script to (re-)enable Windows services

pull/290/head
MagicLike 3 years ago
committed by GitHub
parent
commit
5ed09244c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      scripts/enable-services.ps1

32
scripts/enable-services.ps1

@ -0,0 +1,32 @@
# Description:
# This script (re-)enables Windows services.
# If you do not want to enable 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)
"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 (required for Fingerprint reader / facial detection)
"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
"ndu" # Windows Network Data Usage Monitor
# Services which cannot be disabled / re-enabled
#"WdNisSvc"
)
foreach ($service in $services) {
Write-Output "Trying to enable $service"
Get-Service -Name $service | Set-Service -StartupType Automatic
}
Loading…
Cancel
Save