Get-AgentAlert

Gets an Alert object or collection of Alert objects.

Syntax

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

Detailed Description

The Get-AgentAlert function gets an Alert object or a collection of Alert objects from the specified server.

Related Commands

* Get-AgentAlert

Parameters

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

Input Type

None You cannot pipe objects to Get-AgentAlert

Return Values

Microsoft.SqlServer.Management.Smo.Agent.Alert Get-AgentAlert returns a Microsoft.SqlServer.Management.Smo.Agent.Alert object.

Examples

EXAMPLE 1

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