First, let me say that this person knows that
Select-Object
can be used to select the properties we want, so he tried to guess the property name using a trial/error approach.The person tried:
Get-Service WinRM | Select-Object Startup, Status, Name, DisplayNameand also:
Get-Service WinRM | Select-Object StartupType, Status, Name, DisplayNameBut all of them were just empty.
There is a better way.