Running PowerShell in Task Scheduler
Troubleshooting scheduled tasks is a pain in the rear, because you can’t really see what’s going on. These are some things you may want to check: Check that your commandline works in principle, e.g. by running it from CMD (in your case try running powershell.exe -File “D:\script.ps1”). If that gives you any errors you need … Read more