Troubleshoot Windows Task Scheduler jobs that run manually but fail in the background, including account, path, permissions and environment issues.
01

Check the task action

Use absolute paths for PowerShell and script files. Avoid relying on the current working directory.

02

Check the run account

Confirm the account has Log on as a batch job rights where required and access to the script, network paths, certificates and output folders.

03

Use explicit PowerShell arguments

A typical action uses powershell.exe -NoProfile -ExecutionPolicy Bypass -File C:\Path\script.ps1 where appropriate for your policy.

04

Check mapped drives

Scheduled tasks usually should not depend on interactive mapped drives. Use UNC paths or authenticate to the required resource explicitly.

05

Review task history

Enable Task Scheduler history and check Last Run Result. Also capture PowerShell transcript or custom logs.

06

Test in the same context

Run the task manually from Task Scheduler and compare the environment, permissions and paths with the interactive session.

Explore more TechRunbook guides

Browse practical troubleshooting guides, PowerShell scripts, checklists and infrastructure resources for your environment.

Browse all articles →
TechRunbook · Practical infrastructure knowledge, ready when it matters.