How to document the local Exchange Organization for As Built documents and auditing

There are many times you need to perform an audit of a local Exchange Organisation. You might need an overview of a new client you are supporting, or you might need to create an As Built document after your latest project.

Over the years I have had to do this countless times, and as much as I hate documenting environments and creating 'As Built' documents, I always ensure the document is as detailed as possible. Performing an audit of a local Exchange Organisation can be very time consuming, but it is invaluable for future troubleshooting and makes creating As Built documents so much easier.

To make this process easier for myself for future projects, I decided to create a single script that performs a comprehensive audit of your local Exchange Org and dumps that information into a bunch of text and csv files. The information in these reports can then be easily copy and pasted into your As Built documents, saving countless hours of clicking through the EAC or running countless scripts and filtering through to find the important values you need for an As Built document.

*** Download and save my Exchange Org Documentation script - Link ***

My script doesn't do pretty HTML reports for management, it just gets all the information you need for your audit / As Built document.

The script generates a separate report for each of the following for all the local Exchange servers in your Organization.
  • Exchange SSL certificates
  • OWA Virtual Directory URL
  • ActiveSync Virtual Directory URL
  • Outlook Anywhere configuration
  • AutoDiscover Virtual Directory URL
  • OAB Virtual Directory URL
  • Web Services Virtual Directory URL
  • Accepted Domains
  • Email Address Policy configuration
  • Receive Connectors configuration
  • Send Connectors configuration
  • Transport configuration
  • Mailbox Database configuration
  • Exchange Server configuration, including Exchange version
  • OWA Mailbox Policies
  • Mobile Device Policies
  • Transport Rules
  • Exchange Administrators
  • Mailbox Details
  • Mailboxes with Forwarders
  • Mailboxes with Full Access Delegates
  • Mailboxes with Send As Delegates
  • Mailboxes with Send on Behalf Delegates
  • Mailbox statistics
Script updated 10 December 2017 to include a dedicated script for Exchange 2010.
Scripts now support all versions of Exchange 2007, 2010, 2013 and Exchange 2016.


*** Download and save my Exchange Org Documentation script - Link ***

Editing the script before running it.
To edit your script, simply update the following two variables for your environment -
(The Exchange 2007 script does not include the DNS zone variable or report).

$logpath = "c:\reports"
$DNSZone = ""

Original script -

Updated script -

Save your script and get ready to run in on your local Exchange server.

Open the Exchange Management Shell - browse to the directory where the script is and run it.

After the script has successfully run, open the directory where you stipulated the reports to be generated. You will now see all the reports that are a mixture of txt and csv files.

An example of the csv is the MailboxDetails.csv below -

An example of one the txt files is the AcceptedDomain.txt below

I have numbered these reports to match the order of how I need my information for the As Built documents, but that is more for ease of use than functionality.

Now that you have your reports, you can start using this information for


Congratulations -
You now have reports of the important configurations of your local Exchange Organization.
This will provide the key configurations for documenting your environment and creating As Built documents.

If you would like more comprehensive reports for ALL the configurations of your local Exchange Organization, check out this TechNet script from Konrad Sagala - Link


Check out my other tutorials and scripts for managing local Exchange

Enterprise Management
How to manage Enterprise environments - Part 1 - Filtering queries - Link
How to manage Enterprise environments - Part 2 - Creating scripts with a filtered query - Link
How to manage Enterprise environments - Part 3 - Bulk management using multiple filters - Link

All Hybrid Administration Tutorials
- How to configure your desktop PC for Hybrid Exchange - Office 365 - Azure Administration - Link
- How to connect to Hybrid Exchange - Office 365 - Azure AD and Local AD via PowerShell - Link
- Hybrid Management - Part 01 - Creating local User mailboxes - Link
- Hybrid Management - Part 02 - Creating local Exchange Shared Mailboxes - Link
- Hybrid Management - Part 03 - Creating local Exchange Room and Equipment Mailboxes - Link
- Hybrid Management - Part 04 - Configure the Hybrid Connection Wizard - Link
- Hybrid Management - Part 05 - Individual mailbox moves via the EAC - Link
- Hybrid Management - Part 06 - Bulk mailbox moves via the EAC - Link
- Hybrid Management - Part 07 - Moving bulk mailboxes with PowerShell - Link
- Hybrid Management - Part 08 - Creating O-365 User Mailboxes via PowerShell - Link
- Hybrid Management - Part 09 - Creating O-365 Shared Mailboxes via PowerShell - Link
- Hybrid Management - Part 10 - Creating O-365 Room and Equipment Mailboxes via PowerShell - Link


No comments:

Post a Comment