---
updatedAt: 2025-08-14T13:54:07.000Z
agentTools:
  siteIndex: https://developer.n-able.com/llms.txt
  projectIndex: https://developer.n-able.com/n-sight/llms.txt
---

# Lists of scheduled tasks from local computer.

```powershell PowerShell
# PowerShell script to get scheduled tasks from local computer
$ErrorActionPreference = "Stop"
try{
$schedule = new-object -com("Schedule.Service")
$schedule.connect() 
$tasks = $schedule.getfolder("\").gettasks(0)
$tasks  | ForEach-Object {$Name +=" ; " + $_.Name }
IF($tasks.count -eq 0) {Write-Host "Schedule is Empty"}
Else {Write-Host ("Schedule Tasks is " + $Name.Split(";",2)[1]) }
Write-Host ("Script Check Passed")
Exit 0
Read-Host
}
Catch 
{
Write-Host ("Script Check Failed")
Exit 1001
}
```

```json Response Example
{"success":true}
```

# SCRIPT