Solved Powershell command to find users with no e-mail address

Microsoft Outlook 2007
May 6, 2014 at 08:50:27
Specs: Windows 7 Pro SP1, Intel Core i3/4 GB RAM
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?

See More: Powershell command to find users with no e-mail address

Report •


#1
May 6, 2014 at 10:04:31
✔ Best Answer
I do not use Powershell, but I did find this thread that appears to be what your after:

http://blogs.technet.com/b/heyscrip...

MIKE

http://www.skeptic.com/


Report •

#2
May 6, 2014 at 10:10:53
Homework-like typing detected.

Assumed: You're using the AD module:

Get-ADUser -LDAPFilter "(!(mail=*))" -SearchBase whatever | 
Select-Object Name

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

Related Solutions


Ask Question