We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • JEA - get-service output command

    Nov 13, 2019 12:10 PM|JoeRGlasgow|LINK

    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

    error:
    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.