Remote version of Get-Service

This is a powershell version of get-service that works across remote machines (provided that you have sufficient access to the box).

function Get-ServiceRemote($computerName = “.”)
{
Get-WmiObject win32_service -ComputerName . | sort Name | select SystemName,State,Name,DisplayName
}

This can be passed through ft -Auto to become more readable.
A few scripts like these could be of great use in checking the state of a remote system.

Leave a comment