Get-ReplPublicationMonitor
Gets a PublicationMonitor.
Syntax
Get-ReplPublicationMonitor [-replServer] <Object> [<CommonParameters>]
Detailed Description
The Get-ReplPublicationMonitor function gets the PublicationMonitor from the specified ReplServer.
Related Commands
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-ReplPublicationMonitor
Return Values
Microsoft.SqlServer.Replication.PublicationMonitor
Get-ReplPublicationMonitor returns Microsoft.SqlServer.Replication.PublicationMonitor object
Notes
There is a basic hierarchy with replication monitoring ReplicationServer => PublicationMonitor => PublicationMonitor.
Examples
EXAMPLE 1
Get-ReplPublicationMonitor "Z002\sql2K8"
This command gets the PublicationMonitor for SQL Server Z002\SQL2K8.
EXAMPLE 2
Get-ReplPublicationMonitor $(Get-ReplServer "Z002\SQL2K8" sa Passw0rd).ConnectionContext
This command gets the PublicationMonitor for SQL Server Z002\SQL2K8 using SQL authentication.