The property value will produce a value of either 0 or 1. I would like to translate that to $true or $false.
One way is to manually go through each one and do a replace of 1 or 0.
What I would like to do is be a bit smarter and iterate through the properties and change it based on what is already in the property value.
I read through some documentation with what out there on Google, and help on Powershell…but its a bit unclear how to do that.
There is actually no question. I your example you just create an object based on one other object. If you like to change the value of a property based on its “value” you simply read it, make a conditiponal check and change it accordingly. Then you write it back where you got it.
Thanks for the reply @olaf. I am going to revise what I m going to do with this object.
I have already added a type to this object, so I am going to add in typedata with a scriptproperty. I will then create a default view adding the scriptproperties to the default view.