You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
750 B
32 lines
750 B
# 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"
|
|
"DiagTrack"
|
|
"dmwappushservice"
|
|
"HomeGroupListener"
|
|
"HomeGroupProvider"
|
|
"lfsvc"
|
|
"MapsBroker"
|
|
"NetTcpPortSharing"
|
|
"RemoteAccess"
|
|
"RemoteRegistry"
|
|
"SharedAccess"
|
|
"TrkWks"
|
|
"WbioSrvc"
|
|
"WMPNetworkSvc"
|
|
"wscsvc"
|
|
"WSearch"
|
|
"XblAuthManager"
|
|
"XblGameSave"
|
|
"XboxNetApiSvc"
|
|
|
|
# Services which cannot be disabled
|
|
#"WdNisSvc"
|
|
)
|
|
|
|
foreach ($service in $services) {
|
|
Get-Service -Name $service | Set-Service -StartupType Disabled
|
|
}
|
|
|