<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic VBS scheduled task in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280420#M1280840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a vbs-macro, it works when im logged in. But when i schedlue it in task scheduler it freezes. A qv.exe is open but the document is never loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se below macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set ActiveDocument = Qv.OpenDoc ("D:\QlikView\AccessPoint\Sales.qvw","","") &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activedocument.clearall&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;Qv.quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had problem with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280420#M1280840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with a vbs-macro, it works when im logged in. But when i schedlue it in task scheduler it freezes. A qv.exe is open but the document is never loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Se below macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set Qv = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set ActiveDocument = Qv.OpenDoc ("D:\QlikView\AccessPoint\Sales.qvw","","") &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activedocument.clearall&lt;/P&gt;&lt;P&gt;ActiveDocument.GetApplication.Sleep 10000&lt;/P&gt;&lt;P&gt;Qv.quit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had problem with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280420#M1280840</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280421#M1280842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;We run into the same issue. I think qlikview will show a license message. To get around this you have to make sure that your scheduled task will run as a licensed user. Also the scheduled task need to load the userprofile. This enables qlikview to read the license information from the profile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solves the problem for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 10:04:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280421#M1280842</guid>
      <dc:creator />
      <dc:date>2011-05-12T10:04:07Z</dc:date>
    </item>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280422#M1280844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the scheduled task as an licensed user. But how can i make the scheduled task load the userprofile?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;/Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2011 11:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280422#M1280844</guid>
      <dc:creator />
      <dc:date>2011-05-12T11:21:46Z</dc:date>
    </item>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280423#M1280846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;We are using the RES Automation Manager Software to do this. If you want to do this with the task scheduler of the operating system you have to use the "runas" command to start qlikview..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 10:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280423#M1280846</guid>
      <dc:creator />
      <dc:date>2011-05-13T10:39:38Z</dc:date>
    </item>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280424#M1280847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the same problem since I upgraded to version 10 SR1&amp;nbsp; from version 9.&lt;/P&gt;&lt;P&gt;below my vbs file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set MyApp = CreateObject("QlikTech.QlikView")&lt;/P&gt;&lt;P&gt;Set MyDoc = MyApp.OpenDoc ("E:\QlikView\Documents\Scadenze.qvw","","")&lt;/P&gt;&lt;P&gt;Set Button = MyDoc.GetSheetObject("Document\BU01")&lt;/P&gt;&lt;P&gt;Ret = Button.Press &lt;/P&gt;&lt;P&gt;Set MyDoc = Nothing&lt;/P&gt;&lt;P&gt;MyApp.Quit&lt;/P&gt;&lt;P&gt;Set MyApp = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you mean with "runas" command to start QlikView ?&lt;/P&gt;&lt;P&gt;I can't use the above vbscript file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me more info about it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 13:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280424#M1280847</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2011-05-13T13:51:18Z</dc:date>
    </item>
    <item>
      <title>VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280425#M1280848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;I have tested this again. &lt;/P&gt;&lt;P&gt;1. Logon as a user.&lt;/P&gt;&lt;P&gt;2. create your script and make sure that it is runing correctly.&lt;/P&gt;&lt;P&gt;3.Create a small batch file with the following content:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cscript C:\batch\myscript.vbs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. start your batch file and make sure that it is working correctly&lt;/P&gt;&lt;P&gt;5. create a scheduled task to start your batch file. On the last page of the scheduled Task wizard specify the credentials of the user you are currently using. It seems that this will load the userprofile correctly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way it is working for us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 May 2011 09:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/280425#M1280848</guid>
      <dc:creator />
      <dc:date>2011-05-27T09:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: VBS scheduled task</title>
      <link>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/1533688#M1280849</link>
      <description>&lt;P&gt;I had the same problem and found this old thread so I'm posting the solution that worked for me: choose "Run only when user is logged on", instead of "Run whether user is logged on or not", in the scheduled task's settings. That will force QV desktop to open in foreground instead of in background, and that solved the problem for me.&lt;/P&gt;&lt;P&gt;Naturally,&amp;nbsp; the user account that is set to be running the task has to be logged in when the task is scheduled to run for this solution to work.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 09:14:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBS-scheduled-task/m-p/1533688#M1280849</guid>
      <dc:creator>henrikalmen</dc:creator>
      <dc:date>2019-01-23T09:14:50Z</dc:date>
    </item>
  </channel>
</rss>

