ÿþ<html> <head> <title>Get-AgentSchedule</title> </head> <body> <h1>Get-AgentSchedule</h1> <div>Gets an JobSchedule object or collection of JobSchedule objects for JobServer Shared Schedules.</div> <h2> Syntax </h2> <code>Get-AgentSchedule [-jobserver] &lt;Object&gt; [[-name] &lt;String&gt;] [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Get-AgentSchedule function gets an JobSchedule object or a collection of JobSchedule objects for JobServer Shared Schedules on the specified server. </div> <h2> Related Commands </h2> <div> * <a href='Get-AgentSchedule.htm'>Get-AgentSchedule </a><br/> * <a href='Get-AgentJobSchedule.htm'>Get-AgentJobSchedule</a><br/> </div> <h2> Parameters </h2> <table border='1'> <tr> <th>Name</th> <th>Description</th> <th>Required?</th> <th>Pipeline Input</th> <th>Default Value</th> </tr> <tr valign='top'> <td>jobserver&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> <tr valign='top'> <td>name&nbsp;</td> <td>&nbsp;</td> <td>false&nbsp;</td> <td>false&nbsp;</td> <td>&nbsp;</td> </tr> </table> <h2> Input Type </h2> <div>None You cannot pipe objects to Get-AgentSchedule</div> <h2> Return Values </h2> <div>Microsoft.SqlServer.Management.Smo.Agent.JobSchedule Get-AgentSchedule returns a Microsoft.SqlServer.Management.Smo.Agent.JobSchedule object.</div> <h2> Notes </h2> <div>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.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-AgentSchedule "Z002\sql2K8"</pre> <div>This command gets a collection of JobSchedule objects for SQL Server Z002\SQL2K8.</div> </body> </html>