I have an Object which consists of objects with properties. I want to change the property of one of these objects.
I tried the following:
$Object | Where {$_.ID -eq $GetID} | Set-ItemProperty -Name Count -Value $TotCount
But it doesn’t work.
I also try to delete the following object:
$Object | Where {$_.ID -eq $GetID}
Or just $_
submitted by /u/gotinpich
[link] [comments]
The post Change object property and delete object appeared first on How to Code .NET.