If I run
get-service it may return different statuses (0-4/Running, Stopped, Stopping, Running). Can I somehow expand a list of possible values for status by issuing PowerShell commandlet?
I tried to do this by using something like
| select $.status -Expand property, but was not able to get this information.
I want to know how to do it that way (I know that I can find list of possible values in the documentation). I need to use these values in conditions in subsequent steps of my script, and I want to be sure that I covered all possible values returned.