I'm having trouble scheduling a certain task. I want to know every time that I unlock my workstation. So I created a scheduled task with a trigger for "On Workstation Unlock". The action I set was "run program" and I linked it to a batch file that write the date and time into a file.
If I run the batch file by double clicking on it, it works fine. It doesn't ask for any privileges, it doesn't show me the UAC, it just works.
When I unlock my workstation, it runs the batch file (i added a puase command in there so i would see that it ran), but it doesn't actually write to the text file.
What gives? I also tried making an AutoIt script to write to the file because I have had better luck with running autoit commands from shortcuts, but that doesn't work either. It doesn't even seem to run.
Any help would be greatly appreciated.
I have clicked the elevated privlidges check button, I clicked run the operation when a user is away and put in my password. I checked off run as administrator on the batchfile and autoit exe as well.
no luck.
If I run the batch file by double clicking on it, it works fine. It doesn't ask for any privileges, it doesn't show me the UAC, it just works.
When I unlock my workstation, it runs the batch file (i added a puase command in there so i would see that it ran), but it doesn't actually write to the text file.
What gives? I also tried making an AutoIt script to write to the file because I have had better luck with running autoit commands from shortcuts, but that doesn't work either. It doesn't even seem to run.
Any help would be greatly appreciated.
I have clicked the elevated privlidges check button, I clicked run the operation when a user is away and put in my password. I checked off run as administrator on the batchfile and autoit exe as well.
no luck.