$obj |? { $_ -ne $null } | ...
-----Original Message-----
From: Joseph L. Casale [mailto:[email protected]]
Sent: Monday, June 04, 2012 8:04 PM
To: NT System Admin Issues
Subject: Powershell PSCustomObject
How does one iterate through all values in a PSCustomObject? For example, if
you import a csv, then iterate through the resulting array, each element is a
PSCustomObject and you can access each element by name (the header in the csv)
but how do you blindly iterate them all to test for a null value for example?
Thanks!
jlc
~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~
<http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin
~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
---
To manage subscriptions click here:
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin