<?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 Run script when user is not logged on in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-script-when-user-is-not-logged-on/m-p/98056#M603158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched for solutions, and it seems Windows Task Schedulerer doesn't allow tasks with a user Interface to &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;"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".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;I created those two folders, and now the script does work even if I select &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;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.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #575757; font-style: normal; font-size: 13.33px; font-family: arial,helvetica,sans-serif; font-weight: 400;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #575757; font-style: normal; font-size: 13.33px; font-family: arial,helvetica,sans-serif; font-weight: 400;"&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2018 08:06:08 GMT</pubDate>
    <dc:creator>hfkchristian</dc:creator>
    <dc:date>2018-08-02T08:06:08Z</dc:date>
    <item>
      <title>Run script when user is not logged on</title>
      <link>https://community.qlik.com/t5/QlikView/Run-script-when-user-is-not-logged-on/m-p/98056#M603158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I searched for solutions, and it seems Windows Task Schedulerer doesn't allow tasks with a user Interface to &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;"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".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;I created those two folders, and now the script does work even if I select &lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 13.33px; font-style: normal; font-weight: 400; text-align: left; text-indent: 0px;"&gt;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.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #575757; font-style: normal; font-size: 13.33px; font-family: arial,helvetica,sans-serif; font-weight: 400;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-indent: 0px; text-align: left; color: #575757; font-style: normal; font-size: 13.33px; font-family: arial,helvetica,sans-serif; font-weight: 400;"&gt;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?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 08:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-script-when-user-is-not-logged-on/m-p/98056#M603158</guid>
      <dc:creator>hfkchristian</dc:creator>
      <dc:date>2018-08-02T08:06:08Z</dc:date>
    </item>
  </channel>
</rss>

