Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Book Image

Microsoft Exchange 2010 PowerShell Cookbook

Overview of this book

Table of Contents (22 chapters)
Microsoft Exchange 2010 PowerShell Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Scripts available in the $ExBin directory


The following table lists some of the most commonly-used EMS PowerShell scripts that are installed with Exchange 2010:

Name

Description

AddReplicaToPFRecursive.ps1

Adds a new server to the replication list for a public folder and all folders beneath it in the hierarchy

AddUsersToPFRecursive.ps1

Adds a user and their permissions to the client permissions list for a public folder and all folders beneath it in the hierarchy

AggregatePFData.ps1

Aggregates and reports information collected by multiple EMS public folder cmdlets

CheckDatabaseRedundancy.ps1

Monitors the redundancy of replicated mailbox databases

CheckInvalidRecipients.ps1

Fixes recipient objects that have multiple primary SMTP addresses defined

CollectOverMetrics.ps1

Reports on database availability group, switchover, and failover metrics

CollectReplicationMetrics.ps1

Reports on replication status and statistics for databases

ConvertTo-MessageLatency.ps1

Provides end-to-end latency information gathered from message tracking logs

DatabaseMaintSchedule.ps1

Generates maintenance and quota notification schedule time based on a set of input values

enable-CrossForestConnector.ps1

Configures a send connector for cross forest trust for anonymous users

Export-RetentionTags.ps1

Exports retention tags to an external file

get-setuplog.ps1

Displays analysis of the Exchange setup log created during installation

get-AntispamFilteringReport.ps1

Generates a report on anti-spam filtering

get-AntispamSCLHistogram.ps1

Reports on all entries for the Content Filter and groups by SCL values

get-AntispamTopBlockedSenderDomains.ps1

Reports on the top 10 (unless specified otherwise) sender domains blocked by anti-spam agents

get-AntispamTopBlockedSenderIPs.ps1

Reports on the top 10 (unless specified otherwise) sender IPs blocked by anti-spam agents.

get-AntispamTopBlockedSenders.ps1

Reports on the top 10 (unless specified otherwise) senders blocked by anti-spam agents.

get-AntispamTopRBLProviders.ps1

Reports on the top 10 (unless specified otherwise) reasons for rejection by blocklist providers.

get-AntispamTopRecipients.ps1

Reports on the top 10 (unless specified otherwise) recipients rejected by anti-spam agents.

install-AntispamAgents.ps1

Installs the anti-spam agents on a transport server.

Reset-AntispamUpdates.ps1

Removes the anti-spam agents from a transport server.

Import-RetentionTags.ps1

Imports retention tags from an external file

MailboxDatabaseReseedUsingSpares.ps1

Validates the safety of the environment, before swapping failed database copy to a spare disk and reseeding.

Move-TransportDatabase.ps1

Moves the queue database to an alternate disk on a transport server.

MoveAllReplicas.ps1

Moves all public folder content from one server to another.

MoveMailbox.ps1

Works like the Move-Mailbox cmdlet in Exchange 2007 and performs synchronous mailbox moves.

new-TestCasConnectivityUser.ps1

Creates a test user that can be used when testing connectivity on CAS servers.

Prepare-MoveRequest.ps1

Prepares mailboxes for cross-forest mailbox moves.

RedistributeActiveDatabases.ps1

Attempts to redistribute active databases evenly across a number of mailbox servers within a DAG.

RemoveReplicaFromPFRecursive.ps1

Removes a public folder replica and all folders beneath it in the hierarchy.

RemoveUserFromPFRecursive.ps1

Removes a user from the client permissions list for a public folder and all folders beneath it in the hierarchy.

ReplaceReplicaOnPFRecursive.ps1

Replaces a server with a new server in the replication list for a public folder and all folders beneath it in the hierarchy

ReplaceUserPermissionOnPFRecursive.ps1

Replaces the permissions of a user for a public folder with a new set of permissions and applies it to all folders beneath it in the hierarchy

ReplaceUserWithUserOnPFRecursive.ps1

Replaces a user for a new user on the client permissions list for a public folder and applies to all folders beneath it in the hierarchy

ResetCasService.ps1

Resets virtual directory on CAS

ResetSearchIndex.ps1

Rebuilds full-text index catalog

StartDagServerMaintenance.ps1

Initiates DAG server maintenance

StopDagServerMaintenance.ps1

Stops DAG server maintenance and resumes mailbox database copies

Troubleshoot-DatabaseLatency.ps1

Diagnoses disk subsystem issues (used by SCOM)

Troubleshoot-DatabaseSpace.ps1

Troubleshoots log growth (used by SCOM)

Scripts may be added to this directory as you install rollup updates and service packs, and some of them will only be present when a specific server role is installed. For example, the anti-spam scripts will only be available on transport servers. To view all scripts in the $ExScripts folder, run Get-ChildItem $exscripts –Filter *.ps1.