Get-ReplPublisherMonitor

Gets a PublisherMonitor.

Syntax

Get-ReplPublisherMonitor [-replServer] <Object> [<CommonParameters>]

Detailed Description

The Get-ReplPublisherMonitor function gets the PublisherMonitor from the specified ReplServer.

Related Commands

* Get-ReplPublisherMonitor
* Get-ReplServer
* Get-ReplMonitor

Parameters

Name Description Required? Pipeline Input Default Value
replServer  ReplServer can be a string representing the server or a ServerConnection object returned from Get-ReplServer.  true  false   

Input Type

None You cannot pipe objects to Get-ReplPublisherMonitor

Return Values

Microsoft.SqlServer.Replication.PublisherMonitor Get-ReplPublisherMonitor returns Microsoft.SqlServer.Replication.PublisherMonitor object

Notes

There is a basic hierarchy with replication monitoring ReplicationServer => PublisherMonitor => PublicationMonitor.

Examples

EXAMPLE 1

Get-ReplPublisherMonitor "Z002\sql2K8"
This command gets the PublisherMonitor for SQL Server Z002\SQL2K8.

EXAMPLE 2

Get-ReplPublisherMonitor $(Get-ReplServer "Z002\SQL2K8" sa Passw0rd).ConnectionContext
This command gets the PublisherMonitor for SQL Server Z002\SQL2K8 using SQL authentication.