Last active
May 17, 2023 01:21
-
-
Save keyboardcrunch/226407d23c092da5ec3d55ca0ae43390 to your computer and use it in GitHub Desktop.
Windows Services to disable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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