New
#1
Problem Getting a Powershell Script to Run in Task Scheduler
Hope I'm in the right place!
I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives:
Get-ChildItem –Path “D:\Dropbox\Quicken\Backup” –Recurse | Where-Object CreationTime –lt (Get-Date).AddDays(-10) | Remove-ItI
I can run it from a CMD prompt and I set it up in the task scheduler and it seemed to run one time on schedule and then hasn't run since that initial time. I have tried to run it manually from the task scheduler but it gets and error "Task Start Failed."
I have attached copies of the properties tabs and the main view of the task scheduler with the History showing. Any ideas? I didn't find a tutorial, but I'm sure there is something on the website!
Cordially,
Al Guden
TS-TaskView.pdf
PROPERTIES-Settings.pdf
PROPERTIES-Actions.pdf
PROPERTIES-Triggers.pdf
PROPERTIES-General.pdf
PROPERTIES-History.pdf
PROPERTIES-Conditions.pdf