Get-ReplEnumPublications

Calls the EnumPublications method on a PublisherMonitor object.

Syntax

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

Detailed Description

The Get-ReplEnumPublications function calls the EnumPublications method for the specified PublisherMonitor object.

Related Commands

* Get-ReplEnumPublications
* 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-ReplEnumPublications

Return Values

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

Examples

EXAMPLE 1

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