I am trying to create and run a scheduled task via command line with local administrator credentials. here is the example:
schtasks /create /ru administrator /rp <password> /st 00:00:00 /sc ONCE /tn scriptname /tr 'programname.exe'
schtasks /run /tn scriptname
This task is created successfully and shows up in the GUI but will not run = status could not start
If I login as the administrator in this example it works fine and runs fine but it's when I'm signed in as a normal user it fails every time.