Skip to content

Instantly share code, notes, and snippets.

@keyboardcrunch
Last active May 17, 2023 01:21
Show Gist options
  • Save keyboardcrunch/226407d23c092da5ec3d55ca0ae43390 to your computer and use it in GitHub Desktop.
Save keyboardcrunch/226407d23c092da5ec3d55ca0ae43390 to your computer and use it in GitHub Desktop.
Windows Services to disable
$ServiceList = @'
diagtrack
dusmsvc
dps
wdiservicehost
wdisystemhost
mapsbroker
fhsvc
GoogleChromeElevationService
gupdate
gupdatem
wlidsvc
appvclient
cloudidsvc
MicrosoftEdgeElevationService
edgeupdate
edgeupdatem
swprv
InstallService
uhssvc
MozillaMaintenance
defragsvc
sppsvc
sysmain
usosvc
uevagentservice
vss
sysmain
sdrsvc
wersvc
wsearch
wuauserv
waasmedicsvc
xboxgipsvc
xblauthmanager
xblgamesave
xboxnetapisvc
'@
$ServiceList.split() | % {
Set-Service -Name $_ -startupType Disabled -Status Stopped -Force
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment