PowerShell - Check remote server services running
- Jon Boyette
- Jan 11, 2022
- 1 min read
Save as a named.ps1 and this script prompts for server name, then displays ALL running services as well as Name using service, Status and startup type
$a = Read-Host "Enter ServerName to Discover Running Services"
Get-Service -ComputerName $a | Where Status -eq "Running" |
Select MachineName, Name, Status, StartType, StartMode, StartName | ft
Comments