Well then perhaps you should provide a more substantive example. :-P -----Original Message----- From: Joseph L. Casale [mailto:jcas...@activenetwerx.com] Sent: Monday, June 04, 2012 9:03 PM To: NT System Admin Issues Subject: RE: Powershell PSCustomObject
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 [mich...@smithcons.com] 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 listmana...@lyris.sunbeltsoftware.com 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 listmana...@lyris.sunbeltsoftware.com with the body: unsubscribe ntsysadmin