Hi everyone. I'm looking for a Powershell command to find all users in an OU that have no email address attribute. The only info I need is the user's name. Can anyone out there help me with this?
I do not use Powershell, but I did find this thread that appears to be what your after:
Homework-like typing detected. Assumed: You're using the AD module:
Get-ADUser -LDAPFilter "(!(mail=*))" -SearchBase whatever | Select-Object NameHow To Ask Questions The Smart Way
message edited by Razor2.3