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 windowExport-Csv -NoTypeInformation -encoding UTF8 "C:\file.csv"
– Output to File