I have a problem regarding how to make a scheduled task to run whether the user is logged on or not. It must be done in PowerShell. What I have done is:
$WINDIR/system32/schtasks.exe /create /tn TaskName /sc daily /st 15:05:00 /tr "C:\cygwin\opt\IBM\tpchc\bin\tools\TheFileToRun.bat"
But can I provide an extra argument making this task run no matter if the user is logged on or off?
If it cant be done in PowerShell is it then possible to do it in another script language?
Register-ScheduledTask
cmdlet), for two, this is a duplicate of: #13966497 – Fandango