I am trying to use schtasks
to schedule a python GUI script. I want to delete a task once it has run. According to the documentation, I should be using the /Z
switch along with the /V1
switch. But this asks for a run-as password which I can't figure out how to provide.
The command that I am using is:
schtasks /create /sc once /tn task2 /tr "reminder i26" /sd 31/05/2017 /st
23:00 /V1 /Z /F
What is the solution to the problem?