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




Updated 17 March 2018 - optimized for Enterprise -
Runs Get-Mailbox -ResultSize Unlimited once

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.

Version 1.3 - 17/03/2018 
- Updated to run Get-Mailbox -ResultSize unlimited only once (except Exchange 2007)

===========================================================

*** 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 = "domain.com"

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 documenting your local Exchange Organization.

--------------------------------------------------------------------------------------------

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

--------------------------------------------------------------------------------------------

Configure your Administration PC or Server
- How to configure your desktop PC for Office 365 Administration - including MFA - Link
- How to configure Server 2012 R2 for Office 365 Administration - including MFA - Link
- How to configure your desktop PC for Hybrid Exchange - Office 365 - Azure Administration - Link

Connection Scripts
- How to connect to Office 365 and Azure via PowerShell - Link
- How to connect to Hybrid Exchange - Office 365 - Azure AD and Local AD via PowerShell - Link
- How to connect to Office 365 via PowerShell with MFA - Multi-Factor Authentication - Link

Office 365 Migrations
How to configure Exchange 2013 - 2016 for Office 365 Hybrid - Link

All Hybrid Administration Tutorials
- How to configure Exchange 2013 - 2016 for Office 365 Hybrid - Link
- 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 Office 365 User Mailboxes via PowerShell - Link
- Hybrid Management - Part 09 - Creating Office 365 Shared Mailboxes via PowerShell - Link
- Hybrid Management - Part 10 - Creating Office 365 Room and Equipment Mailboxes via PowerShell - Link


All Modern Authentication and MFA (Multi-Factor Authentication) Tutorials
- All my MFA Tutorials on one page - Link
- How to configure your desktop PC for Office 365 Administration - including MFA - Link
- How to configure Server 2012 R2 for Office 365 Administration - including MFA - Link
- How to enable MFA (Multi-Factor Authentication) for Office 365 administrators - Link
- How to connect to Office 365 via PowerShell with MFA - Multi-Factor Authentication - Link
- How to protect your Office 365 MFA admin account from cell phone SIM hijacking - Link
- MFA Support - PowerShell modules and resources for Office 365  - Link

Security
- How to protect your Office 365 MFA admin account from cell phone SIM hijacking - Link

Daily Administration and Reports 
How to create a basic document of the Exchange Online environment - Link
How to document the local Exchange Organization for As Built documents and auditing - Link
PowerShell scripts to report on Mailbox permissions in Exchange Online and Exchange On-Prem - Link

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

PowerShell
- How to create basic PowerShell scripts - Link
- How to create basic PowerShell scripts with Export-CSV - Link
- How to create basic PowerShell scripts with Import-CSV - Link
- PowerShell modules and resources for Office 365 - Link

Downloads -
All my PowerShell TechNet Downloads - Link

Tips and Tricks -
How to use Chrome browser for concurrent multiple connections to different Office 365 tenancies- Link
General Tips and Tricks for better Office 365 Administration - Link
How to extend your Office 365 Trial - Link
How to get a 180 day trial tenant in Office 365 for testing - Link
PowerShell modules and resources for Office 365 - Link

Troubleshooting -
Hybrid Connection Wizard and Click to Run applications fail to download and run - Link

No comments:

Post a comment