Skip to content
This script fetches Exchange organization configuration data and stores the data in plain text or CSV files
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Get-ExchangeOrganizationDetails.ps1
LICENSE.md
README.md

README.md

Get-ExchangeOrganizationDetails.ps1

This script fetches Exchange organization configuration data and stores the data in plain text or CSV files.

Description

The script gathers a lot of Exchange organizational configuration data. The data is stored in separate log files.

The log files are stored in a separate subfolder located under the script directory. An exisiting subfolder will be deleted automatically.

Optionally, the log files can automatically be zipped. The zipped archive can be sent by email as an attachment.

Parameters

Prefix

Prefix to be used with log files and zip archive

FolderName

Folder name of sub folder where all log files will be stored (default: ExchangeOrgInfo)

Zip

Switch to optionally send all log files to a zip archive

SendMail

Switch to send the zipped archive via email

MailFrom

Sender email address

MailTo

Recipient(s) email address(es)

MailServer

FQDN of SMTP mail server to be used

Examples

.\Get-ExchangeOrganizationDetails.ps1 -Prefix MYCOMPANY

Gather all data using MYCOMPANY as a prefix

.\Get-ExchangeOrganizationDetails.ps1 -Prefix MYCOMPANY -Zip

Gather all data using MYCOMPANY as a prefix and save all files as a compressed archive

Note

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.

TechNet Gallery

Download and vote at TechNet Gallery

Credits

Written by: Thomas Stensitzki

Stay connected:

For more Office 365, Cloud Security, and Exchange Server stuff checkout services provided by Granikos

You can’t perform that action at this time.