Get-AgentJobSchedule
Gets an JobSchedule object or collection of JobSchedule objects.
Syntax
Get-AgentJobSchedule [-job] <Job> [[-name] <String>] [<CommonParameters>]
Detailed Description
The Get-AgentJobSchedule function gets an JobSchedule object or a collection of JobSchedule objects for the specified Job.
Related Commands
Parameters
Name |
Description |
Required? |
Pipeline Input |
Default Value |
job |
|
true |
true (ByValue) |
|
name |
|
false |
false |
|
Input Type
None
You can pipe job Job to Get-AgentJobSchedule.
Return Values
Microsoft.SqlServer.Management.Smo.Agent.JobSchedule
Get-AgentJobSchedule returns a Microsoft.SqlServer.Management.Smo.Agent.JobSchedule object.
Examples
EXAMPLE 1
Get-AgentJob "Z002\sql2K8" | Get-AgentJobSchedule
This command gets a collection of JobSchedule objects for all jobs on SQL Server Z002\SQL2K8.