Generates a report for Exchange 2010 Public Folder Replication (aka legacy public folders).
This is an updated version of the Mike Walker to support non-ASCII environments.
This script will generate a report for Exchange 2010 Public Folder Replication.
It returns general information, such as total number of public folders, total items in all public folders, total size of all items, the top 10 largest folders, and more.
Additionally, it lists each Public Folder and the replication status on each server.
By default, this script will scan the entire Exchange environment in the current domain and all public folders.
This can be limited by using the -ComputerName and -FolderPath parameters.
This parameter specifies the Exchange 2010 server(s) to scan. If this is omitted, all Exchange servers with the Mailbox role in the current domain are scanned.
This parameter specifies the Public Folder(s) to scan. If this is omitted, all public folders are scanned.
When used in conjunction with the FolderPath parameter, this will include all child Public Folders of the Folders listed in Folder Path.
Specifying this switch will have this script output HTML, rather than the result objects. This is independent of the Filename or SendEmail parameters and only controls the console output of the script.
Providing a Filename will save the HTML report to a file.
This switch will set the script to send an HTML email report. If this switch is specified, then the To, From and SmtpServers are required.
When SendEmail is used, this sets the recipients of the email report.
When SendEmail is used, this sets the sender of the email report.
When SendEmail is used, this is the SMTP Server to send the report through.
When SendEmail is used, this sets the subject of the email report.
When SendEmail is used, specifying this switch will set the email report to not include the HTML Report as an attachment. It will still be sent in the body of the email.
$publicFolderPath = "\PF1\SUBPF1"
.\Get-PublicFolderReplicationReport.ps1 -ComputerName MXSRV01,MXSRV02,MXSRV03 -FolderPath $publicFolderPath -Recurse -Subject "Public Folder Environment Report [$($publicFolderPath)]" -AsHTML -To thomas@mcsmemail.de -From postmaster@mcsmemail.de -SmtpServer relay.mcsmemail.de -SendEmail
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