Get-AgentJobServer

Gets a JobServer.

Syntax

Get-AgentJobServer [-sqlserver] <Object> [[-username] <String>] [[-password] <String>] [<CommonParameters>]

Detailed Description

The Get-AgentJobServer function gets the JobServer specified. This is the top level object for SMO.Agent.

Related Commands

* Get-AgentJobServer

Parameters

Name Description Required? Pipeline Input Default Value
sqlserver    true  false   
username    false  false   
password    false  false   

Input Type

None You cannot pipe objects to Get-AgentJobServer

Return Values

Microsoft.SqlServer.Management.Smo.Agent.JobServer Get-AgentJobServer returns a Microsoft.SqlServer.Management.Smo.Agent.JobServer object.

Examples

EXAMPLE 1

Get-AgentJobServer "Z002\sql2K8"
This command gets the JobServer for SQL Server Z002\SQL2K8.