Get status of a Public Folder replication

Posted on Updated on

Run the powershell command

Set-ExecutionPolicy Unrestricted

To run the report and get a list of data objects returned that can be further processed, just call the script with no parameters:

.\Get-PublicFolderReplicationReport.ps1

If you’d like to export the HTML report to a file, then use the -Filename parameter:

.\Get-PublicFolderReplicationReport.ps1 -Filename “PublicFolderReplicationReport.html”

If you’d like to send an email, use the -SendEmail switch:

.\Get-PublicFolderReplicationReport.ps1 -SendEmail -To me@mydomain.local -From PFReport@mydomain.local -SmtpServer smtp.mydomain.local -Subject “Public Folder Replication Report”

Note: When using the -SendEmail switch, the -To, -From and -SmtpServer parameters are mandatory.

If you want to limit to only scanning specified servers, use the -ComputerName parameter:

.\Get-PublicFolderReplicationReport.ps1 -ComputerName @(“EXCH01”, “EXCH02”)

If you want to limit to only scanning specific Public Folders, use the -FolderPath parameter:

.\Get-PublicFolderReplicationReport.ps1 -FolderPath @(“\MyFolder1”, “\MyFolder2”)

If you want to scan a specific Public Folder and all subfolders, use the -Recurse switch:

.\Get-PublicFolderReplicationReport.ps1 -FolderPath “\MyFolderPath” -Recurse

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s