Skip to content

Instantly share code, notes, and snippets.

@tibmeister
Last active April 26, 2024 20:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tibmeister/1fcc1d3e6d3e5b832ca33b61c55359fd to your computer and use it in GitHub Desktop.
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.
$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