Get-AgentTargetServerGroup

Gets an TargetServerGroup object or collection of TargetServerGroup objects.

Syntax

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

Detailed Description

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

Related Commands

* Get-AgentTargetServerGroup

Parameters

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

Input Type

None You cannot pipe objects to Get-AgentTargetServerGroup

Return Values

Microsoft.SqlServer.Management.Smo.Agent.TargetServerGroup Get-AgentTargetServerGroup returns a Microsoft.SqlServer.Management.Smo.Agent.TargetServerGroup object.

Examples

EXAMPLE 1

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