Skip to content
Caleb SmithCyberSecurityWithSmitti
Browse PowerShell example contentPowerShell example

10 · Get-ScheduledTask: inspect task actions

Find scheduled tasks and inspect their configured action data.

How to use it

Review the action objects without invoking the task.

Platform and permissions

Windows ScheduledTasks module; elevation can improve coverage.

What changes / what is read

Reads task definitions. No task is run or modified.

Scope and interpretation

The first 25 tasks are a sample. Protected tasks, COM actions and permissions can limit interpretation. Arguments can contain sensitive data.

Practice task

Describe which action fields would help assess a suspicious task.

Reference

Microsoft documentation. Review the documentation for your installed version and use only an authorised learning or investigation environment.

This is personal educational material. Review the complete code and your signing policy before use. PowerShell code is displayed and downloaded as text; WordPress does not run it. Collection caps limit rows/files, not every provider’s wall-clock execution time.

PowerShell · PowerShell 5.1+ syntax target; Windows collectors require the stated Windows modules. Full Windows acceptance testing remains required.Download .ps1
#requires -Version 5.1
Get-ScheduledTask | Select-Object -First 25 TaskPath, TaskName, State, Actions

Example code is displayed as text. Review it and test in your own lab before use.