Get-AgentAlertCategory

Gets an SMO.Agent AlertCategory object or collection of AlertCategory objects.

Syntax

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

Detailed Description

The Get-AgentAlertCategory function gets an SMO.Agent AlertCategory object or a collection of AlertCategory objects from the specified server.

Related Commands

* Get-AgentAlertCategory

Parameters

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

Input Type

None You cannot pipe objects to Get-AgentAlertCategory

Return Values

Microsoft.SqlServer.Management.Smo.Agent.AlertCategory Get-AgentAlertCategory returns a Microsoft.SqlServer.Management.Smo.Agent.AlertCategory object.

Examples

EXAMPLE 1

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