<?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: QRS API Using Powershell in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-Using-Powershell/m-p/2514341#M22067</link>
    <description>&lt;P&gt;There is a PowerShell module for the QRS APIs included in the tools folder of your Qlik Sense install.&lt;BR /&gt;&lt;SPAN&gt;It includes functions for all the QRS APIs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_0-1744680531163.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179626i9714A3ABFCE3D9A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc_0-1744680531163.png" alt="Marc_0-1744680531163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Assuming you have installed in the default directory.&lt;SPAN&gt;(If you copy the module Folder to another machine you can also use it to remotely connect)&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Import-Module &lt;/SPAN&gt;&lt;SPAN&gt;'C:\Program Files\Qlik\Sense\Tools\QlikSenseCLI\QlikSenseCLI.psd1'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Connect-QlikSense -Credential $cred&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Get-QSAbout&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Connect-QlikSense -TrustAllCertificates -Hostname SomeHostName -Certificate $QlikClientCert -Username "Domain\userId"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;you can inspect the Functions in the module by viewing the module in PowerShell ISE&lt;BR /&gt;Or by running `Get-Command -Module QlikSenseCli`&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;ISE is a little easier if you want to visualize the different parameter sets&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_1-1744680610683.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179627i73E0F6DB85F39BCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc_1-1744680610683.png" alt="Marc_1-1744680610683.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 15 Apr 2025 01:30:58 GMT</pubDate>
    <dc:creator>Marc</dc:creator>
    <dc:date>2025-04-15T01:30:58Z</dc:date>
    <item>
      <title>QRS API Using Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-Using-Powershell/m-p/2510612#M21921</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am trying to connect to Qlik Sense Enterprise on Windows (Feb2024 P14) using powershell.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does any one has any idea on why the&amp;nbsp;&lt;SPAN&gt;Invoke-RestMethod throws an Unauthorized error message when passing credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am trying to apply the license on the host after installation of Qlik Sense using the /qrs/license POST call. But before making the POST call, i am trying to make a GET call to create a session cookie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Using below headers &amp;amp; parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;$hdrs = @{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;"X-Qlik-Xrfkey" = "YtgzDNRkxCjXdyut"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;}&lt;BR /&gt;$contentType = 'application/json'&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;$reqUrl =&amp;nbsp;&lt;A href="https://hostname/qrs/about?xrfkey=YtgzDNRkxCjXdyut" target="_blank"&gt;https://hostname/qrs/about?xrfkey=YtgzDNRkxCjXdyut&lt;/A&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The below request does not work and throws the error&amp;nbsp;(401) Unauthorized. Even though the credential parameter has the correct credentials passed. I have verified this multiple times by logging the username and password from the credential object used here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Invoke-RestMethod -Uri $reqUrl &lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;-Credential $cred&lt;/FONT&gt;&lt;/STRONG&gt; -Method Get -Headers $hdrs -ContentType $contentType -SessionVariable websession&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The below request works. But proceeds to use the loggedin users credentials. I do not want to use the logged-in users credentials as the loggedin user is not the QlikAdmin service account user, but a local windows Admin account.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Invoke-RestMethod -Uri $reqUrl &lt;FONT color="#FF6600"&gt;&lt;STRONG&gt;-UseDefaultCredentials&lt;/STRONG&gt;&lt;/FONT&gt; -Method Get -Headers $hdrs -ContentType $contentType -SessionVariable websession&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica"&gt;Any update will help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 07:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-Using-Powershell/m-p/2510612#M21921</guid>
      <dc:creator>aadil_madarveet</dc:creator>
      <dc:date>2025-03-19T07:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: QRS API Using Powershell</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-Using-Powershell/m-p/2514341#M22067</link>
      <description>&lt;P&gt;There is a PowerShell module for the QRS APIs included in the tools folder of your Qlik Sense install.&lt;BR /&gt;&lt;SPAN&gt;It includes functions for all the QRS APIs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_0-1744680531163.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179626i9714A3ABFCE3D9A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc_0-1744680531163.png" alt="Marc_0-1744680531163.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Assuming you have installed in the default directory.&lt;SPAN&gt;(If you copy the module Folder to another machine you can also use it to remotely connect)&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Import-Module &lt;/SPAN&gt;&lt;SPAN&gt;'C:\Program Files\Qlik\Sense\Tools\QlikSenseCLI\QlikSenseCLI.psd1'&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Connect-QlikSense -Credential $cred&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Get-QSAbout&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Connect-QlikSense -TrustAllCertificates -Hostname SomeHostName -Certificate $QlikClientCert -Username "Domain\userId"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;you can inspect the Functions in the module by viewing the module in PowerShell ISE&lt;BR /&gt;Or by running `Get-Command -Module QlikSenseCli`&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;ISE is a little easier if you want to visualize the different parameter sets&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marc_1-1744680610683.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/179627i73E0F6DB85F39BCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marc_1-1744680610683.png" alt="Marc_1-1744680610683.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Apr 2025 01:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QRS-API-Using-Powershell/m-p/2514341#M22067</guid>
      <dc:creator>Marc</dc:creator>
      <dc:date>2025-04-15T01:30:58Z</dc:date>
    </item>
  </channel>
</rss>

