How do I show everything in the custom table?

Welcome Forums General PowerShell Q&A How do I show everything in the custom table?

Viewing 3 reply threads
  • Author
    Posts
    • #282847
      Participant
      Topics: 11
      Replies: 11
      Points: 130
      Rank: Participant

      Hi

      How can I display the server name and uptime all in the same custom table?
      How can I insert the error message in custom table?

      Below is the example of the output I am attempting to achieve

      This is the code

       

      • This topic was modified 3 weeks, 1 day ago by mrdon03.
    • #282925
      Participant
      Topics: 0
      Replies: 9
      Points: 55
      Helping Hand
      Rank: Member

      Hmm, my first Code is gone, so I try it again.
      Sorry, if there is a doublePost…

      • #282937
        Participant
        Topics: 11
        Replies: 11
        Points: 130
        Rank: Participant

        Hi it is working.

        can you explain “2>&1” part ?

         

    • #282943
      Participant
      Topics: 0
      Replies: 9
      Points: 55
      Helping Hand
      Rank: Member

      There are different Output-Pipes in PS

      “2>&1”

      1 means the standard output pipe
      2 means the error output pipe

      I redirect the output from ErrorOutputPipe to the StandardOutputPipe

    • #283000
      Participant
      Topics: 17
      Replies: 1951
      Points: 3,988
      Helping Hand
      Rank: Community Hero

      Use calculated expressions to rename the columns or perform conversions:

      Note that ConvertToDateTime is not required and Powershell does the date conversion and use Get-CimInstance as Get-WmiObject is deprecated.

Viewing 3 reply threads
  • You must be logged in to reply to this topic.