posh.sqlagt | Get-AgentJob

$SQLSRV = Get-SqlServer -sqlserver twtpeeypd0-1\general -username sa -password "/'],lp123"
$jsrv = Get-AgentJobServer -sqlserver $SQLSRV -username sa -password "/'],lp123"
$jbttc = Get-AgentJob -jobserver $jsrv -name ttc
$jstep = Get-AgentJobStep -job $jbttc
Comments