

- #Winscp batch script example update
- #Winscp batch script example full
- #Winscp batch script example windows 10
Actions tab, click Edit, and enure that the Start in (optional) is set just as shown in the below example ( DO NOT put double quote marks around it) for the full path pointing where the batch script is located WITHOUT a final backslash " \" Print Screen C
#Winscp batch script example update
Interestingly, this does not update the "Last Run Time" property for the task. So it appears the task is indeed triggered, but fails to launch.

Only these two tasks are failing to trigger.Įdit: Per Twisty's comment, I turned on task history, and got an actual error message: those running at a set time or interval) are working fine. Other relevant information: Other scheduled tasks (e.g. Modifying local GPO to ensure that logon-as-batch is enabled. (lock/unlock events appear in the event viewer as expected)Ĭreating an alternate windows user and setting the task to run as that principal. Using GPO to enable auditing of workstation lock/unlock events – no effect.

Any insight or ideas would be appreciated.
#Winscp batch script example windows 10
OS is Windows 10 Enterprise LTSB 2016 (圆4). This same set of scheduled tasks worked as expected under Windows 7.īased on answers so far, I can get the tasks to run as expected if I check the "Run only when user is logged on" box, but this has the undesired side effect of causing a visible command window to appear when the tasks are triggered. The problem is that the workstation-lock and workstation-unlock events don't appear to ever be triggered, when actually locking and unlocking the workstation. I can even right-click the tasks I've set up and click 'run', and observe the desired effect.

These scrips are working just fine – I can invoke them manually to the desired effect. This is accomplished via the WinSCP command-line interface,, and its built-in scripting ability. These tasks are set to run on workstation lock and workstation unlock, and execute a script that remotely locks or unlocks an adjacent arch-linux workstation. I'm running Windows 10, and trying to get a pair of scheduled tasks working.
