ÿþ<html> <head> <title>Get-AgentJobStep</title> </head> <body> <h1>Get-AgentJobStep</h1> <div>Gets an JobStep object or collection of JobStep objects.</div> <h2> Syntax </h2> <code>Get-AgentJobStep [-job] &lt;Job&gt; [[-name] &lt;String&gt;] [&lt;CommonParameters&gt;]</code> <h2> Detailed Description </h2> <div> The Get-AgentJobStep function gets an JobStep object or a collection of JobStep objects for the specified Job. </div> <h2> Related Commands </h2> <div> * <a href='Get-AgentJobStep.htm'>Get-AgentJobStep </a><br/> * <a href=' Get-AgentJob.htm'> Get-AgentJob</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>job&nbsp;</td> <td>&nbsp;</td> <td>true&nbsp;</td> <td>true (ByValue)&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 can pipe job Job to Get-AgentJobStep.</div> <h2> Return Values </h2> <div>Microsoft.SqlServer.Management.Smo.Agent.JobStep Get-AgentJobStep returns a Microsoft.SqlServer.Management.Smo.Agent.JobStep object.</div> <h2> Examples </h2> <h3> EXAMPLE 1</h3> <pre>Get-AgentJob "Z002\sql2K8" | Get-AgentJobStep</pre> <div>This command gets a collection of JobStep objects for all jobs on SQL Server Z002\SQL2K8.</div> </body> </html>