<?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 Add or remove licenses through vbs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-or-remove-licenses-through-vbs/m-p/257980#M1280206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all, i have a question.&lt;/P&gt;&lt;P&gt;Is possible to manage licenses from a vbs file??. I want to create a vbs file that contains a macro to add or remove a licenses. &lt;/P&gt;&lt;P&gt;This vbs has 4 const variables modified when necessary:&lt;/P&gt;&lt;P&gt;1) User (DOMAIN\username)&lt;/P&gt;&lt;P&gt;2) Character that represents the type of the license (N - Named, D - Document)&lt;/P&gt;&lt;P&gt;3) Document path (this is used when i need to give a document license. E.G: "C:\QlikView\Customer_Care\Invoice.qvw")&lt;/P&gt;&lt;P&gt;4) Character that represents the operation (A - Add license, R - Remove license)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, i complete the values by hand, and then run the vbs...and like magic...the vbs assigns or remove the license.&lt;/P&gt;&lt;P&gt;I found some time ago an application written in javascript that do something very similar to this...bus it doesn´t assign or remove document licenses. I attached it to this post, is very easy to use.&lt;/P&gt;&lt;P&gt;Well, i need to do something like that but in vbs. So, i wrote some lines based in examples on the web:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVSERVER = "dwin0315"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVOPERATION = "A" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVUSER = "DWIN0315\licencia"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVLICTYPE = "N"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVDOCUMENT = ""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;'****************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Sub AddLicense(User,LicType,Document)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;msgbox "ehhhhh alta"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sub RemoveLicense(User)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;msgbox "uhhhhh baja"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;'****************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Set client = CreateObject("QvsRemote.Client")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;client.AdminConnect QVSERVER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if QVOPERATION = "A" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;call AltaLicencia(QVUSER,QVLICTYPE,QVDOCUMENT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;call BajaLicencia(QVUSER,QVLICTYPE,QVDOCUMENT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it launches an error in the creation of the object client. Anyone knows how can i do this vbs file...some information or what can i read to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>sergio</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>Add or remove licenses through vbs</title>
      <link>https://community.qlik.com/t5/QlikView/Add-or-remove-licenses-through-vbs/m-p/257980#M1280206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi to all, i have a question.&lt;/P&gt;&lt;P&gt;Is possible to manage licenses from a vbs file??. I want to create a vbs file that contains a macro to add or remove a licenses. &lt;/P&gt;&lt;P&gt;This vbs has 4 const variables modified when necessary:&lt;/P&gt;&lt;P&gt;1) User (DOMAIN\username)&lt;/P&gt;&lt;P&gt;2) Character that represents the type of the license (N - Named, D - Document)&lt;/P&gt;&lt;P&gt;3) Document path (this is used when i need to give a document license. E.G: "C:\QlikView\Customer_Care\Invoice.qvw")&lt;/P&gt;&lt;P&gt;4) Character that represents the operation (A - Add license, R - Remove license)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, i complete the values by hand, and then run the vbs...and like magic...the vbs assigns or remove the license.&lt;/P&gt;&lt;P&gt;I found some time ago an application written in javascript that do something very similar to this...bus it doesn´t assign or remove document licenses. I attached it to this post, is very easy to use.&lt;/P&gt;&lt;P&gt;Well, i need to do something like that but in vbs. So, i wrote some lines based in examples on the web:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVSERVER = "dwin0315"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVOPERATION = "A" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVUSER = "DWIN0315\licencia"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVLICTYPE = "N"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Const QVDOCUMENT = ""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;'****************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Sub AddLicense(User,LicType,Document)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;msgbox "ehhhhh alta"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End Sub&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Sub RemoveLicense(User)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;msgbox "uhhhhh baja"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;'****************************************************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Set client = CreateObject("QvsRemote.Client")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;client.AdminConnect QVSERVER&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;if QVOPERATION = "A" then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;call AltaLicencia(QVUSER,QVLICTYPE,QVDOCUMENT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;call BajaLicencia(QVUSER,QVLICTYPE,QVDOCUMENT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;end if&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it launches an error in the creation of the object client. Anyone knows how can i do this vbs file...some information or what can i read to do this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-or-remove-licenses-through-vbs/m-p/257980#M1280206</guid>
      <dc:creator>sergio</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
  </channel>
</rss>

