Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi folks
We have a secure script server which reloads a number of QV Dashboards via scheduled AutoSys scripts.
eg
"C:\Program Files\QlikView\qv.exe" /R "D:\QV-Scripts\SCOMDashboard.qvw"
The functional ID which Autosys uses is locked down and we cannot use the account to login to the script server.
We suspect that the QV License leased to the account has expired, but because we cannot log into the server using the FID we cannot request a new lease.
Can anyone advise if its possible to renew the lease via PowerShell which we could add into the AutoSys script prior to the QV Dashboard reloads?
Thanks in advance.
Nigel
Hi @nigelapt,
I'm not aware of any method to renew a QlikView Desktop license lease programmatically using PowerShell. Given the constraints of your environment/account, you may want to apply a stand alone QV Desktop license and skip using license lease completely.
Best Regards
Of course, it's possible. To renew a license lease you have to open a QlikView App from the QlikView Server via qvp protocol. By myself I use a powershell script that uses the COM Interface of QlikView Desktop to do this.
The essential steps are:
$qvwApp="qvp://qlikview-server/DOCS/A Small App.qvw"
Start-Process -FilePath "c:\Program Files\QlikView\Qv.exe" -ArgumentList /nosecurity -WindowStyle Hidden
$qvAppl = New-Object -ComObject QlikTech.QlikView
$qvDoc=$qvAppl.OpenDoc($qvwApp,"","")
$qvDoc.CloseDoc()
$qvAppl.Quit()
For using the COM Interface you have to ensure that there is no running other QV.exe processes for the same user!
See attachement for the full script.