Get-AgentOperator

Gets an AgentOperator object or collection of AgentOperator objects.

Syntax

Get-AgentOperator [-jobserver] <Object> [[-name] <String>] [<CommonParameters>]

Detailed Description

The Get-AgentOperator function gets an Operator object or a collection of Operator objects for the specified server.

Related Commands

* Get-AgentOperator

Parameters

Name Description Required? Pipeline Input Default Value
jobserver    true  false   
name    false  false   

Input Type

None You cannot pipe objects to Get-AgentOperator

Return Values

Microsoft.SqlServer.Management.Smo.Agent.Operator Get-AgentOperator returns a Microsoft.SqlServer.Management.Smo.Agent.Operator object.

Examples

EXAMPLE 1

Get-AgentOperator "Z002\sql2K8"
This command gets a collection of Operator objects for SQL Server Z002\SQL2K8.