Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Change object property and delete object

$
0
0

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.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images