Monday 12 March 2012

How do I find "null" attributes?

Ever wanted to search for empty AD attributes? Try using $null

For example, to show all users with no email details set, use the following:

Get-QADUser| where {$_.mail -eq $null}

No comments:

Post a Comment