Nuacht

I have tried running it as a local Administrator as well as a full-fledged domain admin account (this is a domain-joined server). I can run the script within the Task Scheduler manually and it works.
The Windows Task Scheduler is a boon for a group of users who like to schedule different tasks and automate them. I use it all the time to schedule periodic execution of scripts and some programs ...
Learn how to create & make a PowerShell script run as a scheduled task with or without parameters using Task Scheduler in Windows 11/10.
Tom Fenton details step-by-step directions to configure Windows 10 to allow running Task Scheduler and how to set up an automated task to run a PowerShell script every four hours.
On Windows 10, you can automate tasks with the Task Scheduler, and in this guide, I'll show you the steps to create basic and advanced tasks on your device.