27
0
AD

List of users Active Directory Users with no Email address

27

Regular expressions to monitor the list of users without an email address from Microsoft Active Directory.

  • Windows PowerShell
Get-ADUser -Filter * -Properties EmailAddress | where -Property EmailAddress -eq $null

Export:
out-gridview -title "Without mail address" – Output to window
Export-Csv -NoTypeInformation -encoding UTF8 "C:\file.csv" – Output to File

Leave a Reply

Your email address will not be published.