How do I know which Exchange Services 2000/2003 are running with PowerShell ?

While were doing stuff with Exchange - how do we know which Exchange Services are running and what kind of state they're in?

Simple. Again were sticking to using WMI, connecting to the machine remotely and interrogating the service state. The basic command line is: get-wmiobject win32_service -ComputerName 2003server ,however that gives us every service available on the machine. Issuing the same machine with a filter to match service names that contain the word "msexchange" gives us the following command: get-wmiobject win32_service -ComputerName 2003server | Where-Object { $_.name -match "^msexchange." }

This looks better, but still not quite what were looking for. Since the output of the previous command returns as an object we can pipe it into the select-object cmdlet With a bit of formatting we now have:

get-wmiobject win32_service -ComputerName 2003server | Where-Object { $_.name -match "^msexchange." } | select-object displayname, state, status