Find Exchange recipient objects for a single or multiple domains.
This script finds recipient objects for a single domain or a list of domains. An overview containing the number of found recipients is displayed as output.
You can export recipient details as CSV if needed.
Tested with Exchange Server 2016 and Exchange Server 2019.
- Windows Server 2016 or newer
- Utilizes the global function library found here: http://scripts.granikos.eu
- Exchange Server 2016+
- Exchange Management Shell (EMS)
- 2021-09-14, v1.0, Initial Community Release
Filename of a simple txt file containing one domain name per row.
A single domain name.
Switch to export recipients. The script creates a single file per domain.
.\Get-RecipientDomainOverview.ps1 -DomainFile .\domains.txt -ExportUsersToCsv
Search for recipients that have a proxy address of domains provided in the TXT file domains.txt and export all users to a CSV file
.\Get-RecipientDomainOverview.ps1 -Domain varunagroup.de
Search for recipients that have a proxy address of varunagroup.de and display the summary only
THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.
Written by: Thomas Stensitzki
- My Blog: http://justcantgetenough.granikos.eu
- Twitter: https://twitter.com/stensitzki
- LinkedIn: http://de.linkedin.com/in/thomasstensitzki
- Github: https://github.com/Apoc70
- MVP Blog: https://blogs.msmvps.com/thomastechtalk/
- Tech Talk YouTube Channel (DE): http://techtalk.granikos.eu
For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos
- Blog: http://blog.granikos.eu
- Website: https://www.granikos.eu/en/
- Twitter: https://twitter.com/granikos_de