JEA - get-service output command RRS feed

  • Question

  • User983667610 posted

    I have setup JEA and got it working fine.  Now I need to tweak it for the output.

    I can get this to work fine

    Get-Service -ComputerName Server service

    this works also works fine

    Get-Service -ComputerName Server service | select Name

    But it falls over If I do this

    Get-Service -ComputerName Server service | select Status

    Cannot validate argument on parameter 'Property'. The argument "status" does not belong to the set
    "ModuleName,Namespace,OutputType,Count,HelpUri,Name,CommandType,ResolvedCommandName,DefaultParameterSet,CmdletBinding,Parameters" specified by the ValidateSet attrib
    ute. Supply an argument

    How do i get it to be able to output all the switches. Ideally I would like to be able to do this via JEA

    Get-Service -ComputerName server service | select -property MachineName, Name, DisplayName, starttype, Status | Format-Table

    but Cant figure out how to get the above.

    Wednesday, November 13, 2019 12:10 PM

All replies