Running Scheduled Tasks with Powershell -


i started coding in powershell today , noticed when ran scheduled tasks via powershell, wouldn't register running in task scheduler(run "taskschd.msc"). code i'm using here:

get-scheduledtask -taskpath "\taskpathhere\" | start-scheduledtask  

when run task manually(right-mouse click>run), status changes ready running. isn't case when ran powershell.

question: there additional parameter need pass change status, or intentional behavior? if intentional, why?


Comments