<?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 qlikview application via PowerShell (using Task Scheduler) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Run-qlikview-application-via-PowerShell-using-Task-Scheduler/m-p/1156776#M377265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a problem with successful execution of task&amp;nbsp; in Task Scheduler (Windows Server 2012).&lt;/P&gt;&lt;P&gt;There are no problems, If i start it with option "Run only when user is logged on"&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132657_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;But if try change it to "Run whether user is logged on or not", my qlikview application is not starting correctly(if user is really log off):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/132658_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;How can I &lt;SPAN&gt;fix&lt;/SPAN&gt; &lt;SPAN&gt;it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task is starting powershell script, which starts the QliKView application:&lt;/P&gt;&lt;P&gt;Start "C:\Program Files\QlikView\qv.exe"&amp;nbsp; "/NoSecurity C:\test.qvw"&lt;/P&gt;&lt;P&gt;In this QV app. i create OnOpen event trigger, which runs qlikview macro. (save to excel using function ExportToExcel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ExportToExcel(ObjectId, FilePath)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim FileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set FileName = ActiveDocument.GetSheetObject(ObjectId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName.ExportBiff FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set FileName = nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aleksandrov Anton.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 12:25:17 GMT</pubDate>
    <dc:creator>asgardd2</dc:creator>
    <dc:date>2016-07-27T12:25:17Z</dc:date>
    <item>
      <title>Run qlikview application via PowerShell (using Task Scheduler)</title>
      <link>https://community.qlik.com/t5/QlikView/Run-qlikview-application-via-PowerShell-using-Task-Scheduler/m-p/1156776#M377265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have a problem with successful execution of task&amp;nbsp; in Task Scheduler (Windows Server 2012).&lt;/P&gt;&lt;P&gt;There are no problems, If i start it with option "Run only when user is logged on"&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/132657_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;But if try change it to "Run whether user is logged on or not", my qlikview application is not starting correctly(if user is really log off):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/132658_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;How can I &lt;SPAN&gt;fix&lt;/SPAN&gt; &lt;SPAN&gt;it?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task is starting powershell script, which starts the QliKView application:&lt;/P&gt;&lt;P&gt;Start "C:\Program Files\QlikView\qv.exe"&amp;nbsp; "/NoSecurity C:\test.qvw"&lt;/P&gt;&lt;P&gt;In this QV app. i create OnOpen event trigger, which runs qlikview macro. (save to excel using function ExportToExcel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub ExportToExcel(ObjectId, FilePath)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim FileName&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set FileName = ActiveDocument.GetSheetObject(ObjectId)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileName.ExportBiff FilePath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set FileName = nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Aleksandrov Anton.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 12:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-qlikview-application-via-PowerShell-using-Task-Scheduler/m-p/1156776#M377265</guid>
      <dc:creator>asgardd2</dc:creator>
      <dc:date>2016-07-27T12:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Run qlikview application via PowerShell (using Task Scheduler)</title>
      <link>https://community.qlik.com/t5/QlikView/Run-qlikview-application-via-PowerShell-using-Task-Scheduler/m-p/1156777#M377266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, see this post:&lt;BR /&gt;&lt;A href="https://community.qlik.com/message/527528"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"QlikView Desktop needs an UI and that is incompatible with batch execution (e.g. execution in the background without UI)"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 17:38:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Run-qlikview-application-via-PowerShell-using-Task-Scheduler/m-p/1156777#M377266</guid>
      <dc:creator>flanfranco</dc:creator>
      <dc:date>2016-07-27T17:38:06Z</dc:date>
    </item>
  </channel>
</rss>

