Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
hfkchristian
Creator
Creator

Run script when user is not logged on

Hi all

I have a .vbs script which starts QlikView, does some selections, exports some data, and then closes QlikView again. I want this script to run on the server every night.

We are using Windows Server 2008 R2. I have scheduled the script in Windows Task Schedulerer. When I set the task to "run only when the user is logged on" it has always worked. When I changed it to "run whether user is logged in or not", at first it did not work at all.

I searched for solutions, and it seems Windows Task Schedulerer doesn't allow tasks with a user Interface to "run whether user is logged in or not". But you could trick it into do it anyway by creating two empty folders named "desktop" under "systemprofile".


I created those two folders, and now the script does work even if I select run whether user is logged in or not". However, it only works when I am actually logged on. The data is not exported at night, as it should. Instead I see a message in Task Scheduler, that the task was aborted by the user.


Does anyone know why I get this error, and how I can get the script to run every night? Will it help to upgrade Windows?

0 Replies