Skip to main content

Connecting with Microsoft Powershell

Microsoft Powershell is an integrated command line shell for Microsoft Windows. Many elements of the .NET Framework can be used from within Powershell to connect to the Qlik Sense Repository Service (QRS) API.

The following example shows how to use Powershell to connect to the QRS API and retrieve a list of apps in JSON format. Since Microsoft Windows authentication is used in this example, the proxy URL is specified.

$hdrs = @{}

$hdrs.Add("X-Qlik-xrfkey","12345678qwertyui")

$url = "https://server_name.com/qrs/about?xrfkey=12345678qwertyui"

Invoke-RestMethod -Uri $url -Method Get -Headers $hdrs -UseDefaultCredentials

Information noteThis example only works with GET requests. To enable POST requests, the example must be expanded. See Issuing POST commands via the proxy.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!