How to find the list of SQL Server jobs using PowerShell? I need to create Windows PowerShell Scripts that will check and list down all SQL Jobs scheduled on a given database server.

Is it possible to find out the list using PowerShell Scripts? If yes, how to do it?
The easiest way is to install the DBATools library and use the command Get-DbaAgentJob.


  To return all SQL Agent Job on the local default SQL Server instance.


Get-DbaAgentJob -SqlInstance localhost


There is no explicit command to filter all scheduled jobs on the server, so we can use common features at the end of the script.

Get-DBAAgentJob -SqlInstance localhost -NoDisabledJobs | Where-Object {$_.HasSchedule -Match "True"}