Get-AgentSchedule
Gets an JobSchedule object or collection of JobSchedule objects for JobServer Shared Schedules.
Syntax
Get-AgentSchedule [-jobserver] <Object> [[-name] <String>] [<CommonParameters>]
Detailed Description
The Get-AgentSchedule function gets an JobSchedule object or a collection of JobSchedule objects for JobServer Shared Schedules on the specified server.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
jobserver |
|
true |
false |
|
name |
|
false |
false |
|
Input Type
None
You cannot pipe objects to Get-AgentSchedule
Return Values
Microsoft.SqlServer.Management.Smo.Agent.JobSchedule
Get-AgentSchedule returns a Microsoft.SqlServer.Management.Smo.Agent.JobSchedule object.
Notes
The Get-AgentSchedule function differs from Get-AgentJobSchedule in that Get-AgentSchedule is used for shared server-level schedules. In most cases you will want to use Get-AgentJobSchedule rather than this one.
Examples
EXAMPLE 1
Get-AgentSchedule "Z002\sql2K8"
This command gets a collection of JobSchedule objects for SQL Server Z002\SQL2K8.