Add properties to [pscustomobject]

Welcome Forums General PowerShell Q&A Add properties to [pscustomobject]

Viewing 1 reply thread
  • Author
    Posts
    • #251876
      Participant
      Topics: 3
      Replies: 1
      Points: 30
      Rank: Member

      Hi All,
      I need your help with my script which is data gathering of my storage
      I running function which show great data:

      [/crayon]

      I used on [pscustomobject] and trying to add this function to my array, the problem is that i got @{} and in the result it tangles up the context.</p>
      my code:

      Results:

       

      I also got it on “Controllers names and modules”, but I’ve overcome it using “replaces” which were also not easy, how can I show the “disk type and size” in normal table view into my [pscustomobject]array?

      to be honest, one property comes with more then 1 value it make my life harder how can add two properties to my array without playing with replace?

      • This topic was modified 3 months, 2 weeks ago by Meropr36.
      • This topic was modified 3 months, 1 week ago by grokkit.
      • This topic was modified 3 months, 1 week ago by grokkit.
    • #252071
      Participant
      Topics: 6
      Replies: 120
      Points: 129
      Helping Hand
      Rank: Participant

      Check out Don’s Vids on https://www.youtube.com/watch?v=KprrLkjPq_c

      He has a full end to end tool created. You can use this your blueprint.

Viewing 1 reply thread
  • The topic ‘Add properties to [pscustomobject]’ is closed to new replies.