Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

adding new values to a psobject?

$
0
0

Hi,

maybe I'm too stupid but I looked through the web for two days now and I can't find a solution.

I created a PSobject and added some properties and values. it looks like this:

  $script:resultall = new-Object PSobject
  Add-Member -InputObject $resultall -memberType NoteProperty -Name DisplayName -Value "Test1"
  Add-Member -InputObject $resultall -memberType NoteProperty -Name Status -Value "Status1"

Now I want to add a second line with similar values to my object but it doesn't work in any way.

Every hint is welcome...

 

Sven


Viewing all articles
Browse latest Browse all 8583

Latest Images

Trending Articles



Latest Images