Get-ReplEnumSnapshotAgent

Calls the EnumSnapshotAgent method on a PublicationMonitor object.

Syntax

Get-ReplEnumSnapshotAgent [-pubMon] <PublicationMonitor> [<CommonParameters>]

Detailed Description

The Get-ReplEnumSnapshotAgent function calls the EnumLogReaderReader method for the specified PublicationMonitor object.

Related Commands

* Get-ReplEnumSnapshotAgent
* Get-ReplPublicationMonitor

Parameters

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

Input Type

Microsoft.SqlServer.Replication.PublicationMonitor You can pipe PublicationMonitor objects to Get-ReplEnumSnapshotAgent

Return Values

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

Examples

EXAMPLE 1

Get-ReplPublicationMonitor "Z002\sql2K8" | Get-ReplEnumSnapshotAgent
This command calls the EnumSnapshotAgent method for SQL Server Z002\SQL2K8.