Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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
- "Print Spooler" # Disables printing
- "Fax" # Disables Fax
- "stisvc" #disables Windows Image Acquisition
- "PcaSvc" #Program Compatibility Assistant Service
- # Services which cannot be disabled
- #"WdNisSvc"
- )
- foreach ($service in $services) {
- Write-Output "Trying to disable $service"
- Get-Service -Name $service | Set-Service -StartupType Disabled
- }
Advertisement
Add Comment
Please, Sign In to add comment