Get-ReplEnumPublications2

Calls the EnumPublications2 method on a PublisherMonitor object.

Syntax

Get-ReplEnumPublications2 [-publisherMon] <PublisherMonitor> [<CommonParameters>]

Detailed Description

The Get-ReplEnumPublications2 function calls the EnumPublications2 method for the specified PublisherMonitor object.

Related Commands

* Get-ReplEnumPublications2
* Get-ReplPublisherMonitor

Parameters

Name Description Required? Pipeline Input Default Value
publisherMon    true  true (ByValue)   

Input Type

Microsoft.SqlServer.Replication.PublisherMonitor You can pipe PublisherMonitor objects to Get-ReplEnumPublications2

Return Values

System.Data.DataRow Get-ReplEnumPublications2 returns an array of System.Data.DataRow objects

Notes

Equivalent to executing sp_replmonitorhelppublication. Only available for Microsoft SQL Server version 2005 or later.

Examples

EXAMPLE 1

Get-ReplPublisherMonitor "Z002\sql2K8" | Get-ReplEnumPublications2
This command calls the EnumPublications2 method for SQL Server Z002\SQL2K8.