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

Updating a specific value of an array with multiple entries

$
0
0

Hi,

I'm looking for a way to update an existing array.

I have a PSCustomObject that I gather in an array

$x= [PSCustomObject] @{

   Source = ""

   Target =""

   XD = ""

   ID = ""

}

$arrX += $x... Array looks good and I can select values, to update however is a little more difficult...

I want to find a specific ID value in the array and update the XD Value with something else.

Any tips & Trick are most welcomed!!!

 

Regards,

 

Irwin


Viewing all articles
Browse latest Browse all 6937

Trending Articles