<?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 Re: Start the Qlik Sense QMC job from another server using PowerShell script. in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Start-the-Qlik-Sense-QMC-job-from-another-server-using/m-p/2519474#M22235</link>
    <description>&lt;P&gt;403 is a post auth (i.e. the authentication was successful) denial based on access. The most obvious step to verify is that the user who is running the PowerShell script has sufficient rights to do perform the action. In this interactive session I can run the&amp;nbsp;&lt;STRONG&gt;whoami&lt;/STRONG&gt; command to see the user then verify that they have sufficient rights to execute the task (RootAdmin will assuredly grant them this right, you can customize the security rules to provide this without the RootAdmin role):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Levi_Turner_1-1748523930498.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180894i4DED9D27AAEB34CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Levi_Turner_1-1748523930498.png" alt="Levi_Turner_1-1748523930498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's unclear&amp;nbsp;&lt;EM&gt;what&lt;/EM&gt; is executing this script, but I would start by running it as your target user. Then running it in whatever system / process / application will be executing the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2025 13:06:59 GMT</pubDate>
    <dc:creator>Levi_Turner</dc:creator>
    <dc:date>2025-05-29T13:06:59Z</dc:date>
    <item>
      <title>Start the Qlik Sense QMC job from another server using PowerShell script.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Start-the-Qlik-Sense-QMC-job-from-another-server-using/m-p/2519424#M22233</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;We have one Dummy Qlik Sense QMC job that is dependent on another server job where we are receiving the data. The QlikSense QMC job will be executed after the data has been refreshed from another server.&lt;/P&gt;&lt;P&gt;We have PowerShell script which is running fine in old server but when we trying to execute this PowerShell in newly migration server. Getting forbidden error.&lt;/P&gt;&lt;P&gt;Please find my script below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cls
 
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","iX83QmNlvu87yyAB")
$url = "https://Myserver/qrs/about?xrfkey=iX83QmNlvu87yyAB"
#$response = Invoke-RestMethod  -Uri $url -Method Get -Headers $hdrs -SessionVariable websession
$response = Invoke-RestMethod -UseDefaultCredentials -Uri $url -Method Get -Headers $hdrs -SessionVariable websession
$cookies = $websession.Cookies.GetCookies($url)
 
$session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
$session.Cookies.Add($cookies)
$response = @{}
 
$hdrs = @{}
$hdrs.Add("X-Qlik-xrfkey","iX83QmNlvu87yyAB")
$url = "https://Myserver/qrs/task//start/synchronous?name=DummyJobForTrigger&amp;amp;xrfkey=iX83QmNlvu87yyAB"
$response = Invoke-RestMethod -WebSession $session -Uri $url -Method Post -Headers $hdrs -ContentType 'application/json'
$response.value -like "????????-????-????-????-????????????"&lt;/LI-CODE&gt;&lt;P&gt;Error screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jrathgebercs_0-1748498174378.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180887i96DB635A0C86AE5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jrathgebercs_0-1748498174378.png" alt="jrathgebercs_0-1748498174378.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please check and suggest ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Irshad Ahmad&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 05:57:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Start-the-Qlik-Sense-QMC-job-from-another-server-using/m-p/2519424#M22233</guid>
      <dc:creator>jrathgebercs</dc:creator>
      <dc:date>2025-05-29T05:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Start the Qlik Sense QMC job from another server using PowerShell script.</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Start-the-Qlik-Sense-QMC-job-from-another-server-using/m-p/2519474#M22235</link>
      <description>&lt;P&gt;403 is a post auth (i.e. the authentication was successful) denial based on access. The most obvious step to verify is that the user who is running the PowerShell script has sufficient rights to do perform the action. In this interactive session I can run the&amp;nbsp;&lt;STRONG&gt;whoami&lt;/STRONG&gt; command to see the user then verify that they have sufficient rights to execute the task (RootAdmin will assuredly grant them this right, you can customize the security rules to provide this without the RootAdmin role):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Levi_Turner_1-1748523930498.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/180894i4DED9D27AAEB34CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Levi_Turner_1-1748523930498.png" alt="Levi_Turner_1-1748523930498.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It's unclear&amp;nbsp;&lt;EM&gt;what&lt;/EM&gt; is executing this script, but I would start by running it as your target user. Then running it in whatever system / process / application will be executing the script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 13:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Start-the-Qlik-Sense-QMC-job-from-another-server-using/m-p/2519474#M22235</guid>
      <dc:creator>Levi_Turner</dc:creator>
      <dc:date>2025-05-29T13:06:59Z</dc:date>
    </item>
  </channel>
</rss>

