Hrm,
I must be doing something wrong then.
If I call out the individual item and test it works:
If ($obj."foo" -eq $null) { "bail" }
I gather the method you show tests if the entire psobject is null, whereas if
only one of the NoteProperty are empty, it won't fail the test?
Thanks!
jlc
________________________________________
From: Michael B. Smith [[email protected]]
Sent: Monday, June 04, 2012 6:09 PM
To: NT System Admin Issues
Subject: RE: Powershell PSCustomObject
$obj |? { $_ -ne $null } | ...
~ 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