How to Use PowerShell to Manage Windows Services
PowerShell provides powerful cmdlets for managing Windows services — starting, stopping, querying status, and configuring startup type.
List All Services
Get-Service
Start and Stop a Service
Start-Service -Name "wuauserv" Stop-Service -Name "wuauserv"
Change Startup Type
Set-Service -Name "Spooler" -StartupType Disabled
Find Services by Status
Get-Service | Where-Object { $_.Status -eq "Running" }