Last active
April 26, 2024 20:39
-
-
Save tibmeister/1fcc1d3e6d3e5b832ca33b61c55359fd to your computer and use it in GitHub Desktop.
This script will stop unneeded services that are running on your Windows 10 machine to improve performance.
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 = @" | |
AppVClient | |
debugregsvc | |
iphlpsvc | |
MapsBroker | |
NetTcpPortSharing | |
RemoteAccess | |
RemoteRegistry | |
SCardSvr | |
shpamsvc | |
SysMain | |
tzautoupdate | |
UevAgentService | |
WebManagement | |
"@ | |
$serviceList = $serviceList.Split("`n") | |
foreach($service in $serviceList) | |
{ | |
Get-Service -name $service -ErrorAction SilentlyContinue | Stop-Service -ErrorAction SilentlyContinue | |
Get-Service -name $service -ErrorAction SilentlyContinue | Set-Service -StartupType Disabled -ErrorAction SilentlyContinue | |
} | |
#Adding a comment |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment