Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
automated update of the license file
#1
Hi,


I'm still having issues updating the license file using automation tool:
[2026-11-06 10:14:03] [INFO] Starting Rocket license import using environments.xml directly. 
[2026-11-06 10:14:03] [INFO] License file: C:\Temp\UpdateRocketRemote\LicenseFile_aeven_as.xml 
[2026-11-06 10:14:03] [INFO] Rocket executable: C:\Program Files\Rocket Remote Desktop 2026\RDConsole.exe 
[2026-11-06 10:14:03] [INFO] Environment configuration: C:\ProgramData\Rocket Remote Desktop\19.0\environments.xml 
[2026-11-06 10:14:03] [INFO] Environment: Visionapp [2026-11-06 10:14:03] [INFO] Starting Rocket license import command. 
[2026-11-06 10:14:05] [INFO] Rocket license import exit code: -22 
[2026-11-06 10:14:05] [ERROR] RDConsole returned -22: Login failed. 
[2026-11-06 10:14:05] [ERROR] Rocket license import failed.


If I run the same script in my user context, it works
[2026-11-06 12:07:40] [INFO] Starting Rocket license import using environments.xml directly.
[2026-11-06 12:07:41] [INFO] License file: C:\Temp\UpdateRocketRemote\LicenseFile_aeven_as.xml
[2026-11-06 12:07:41] [INFO] Rocket executable: C:\Program Files\Rocket Remote Desktop 2026\RDConsole.exe
[2026-11-06 12:07:41] [INFO] Environment configuration: C:\ProgramData\Rocket Remote Desktop\19.0\environments.xml
[2026-11-06 12:07:41] [INFO] Environment: Visionapp
[2026-11-06 12:07:41] [INFO] Starting Rocket license import command.
[2026-11-06 12:07:47] [INFO] Rocket license import exit code: 1
[2026-11-06 12:07:47] [OK] Rocket license import completed. Exit code 1 is accepted for /importlicense.
[2026-11-06 12:07:47] [OK] Rocket license import step completed.

I'm using 2026 Patch5

In my prevoius thread, I was told it was fixed 

I'm using these parameters:
    $arguments = @(
        "/configfile:`"$($environmentFile.FullName)`""
        "/instance:$selectedEnvironment"
        '/loginintegrated:true'
        '/loginsubmit'
        "/importlicense:`"$licenseFile`""


My automation tool is running the script as Local System

I hope you can help me


Jan
Reply
#2
You use loginintegrated and a service account - this service account seems not be allowed to connect to your database - via your user account it is working because your user is allowed
Regards/Gruss
Oliver
Reply
#3
(06-11-2026, 01:58 PM)DevOma Wrote: You use loginintegrated and a service account - this service account seems not be allowed to connect to your database - via your user account it is working because your user is allowed

So how do I fix this? I have tried to log on using the DBO account and that fails too
Reply
#4
You need to grant permissions to your Service Account in your database
Regards/Gruss
Oliver
Reply
#5
can't I use the connection string in the XML file to get access to import the license file?

Regards

Jan
Reply
#6
If you use "Integrated Login" for DB-Access this means that your Windows Account is used for SQL-Connection - if you now switch to Service Account - that Account also needs permission to access the database
Regards/Gruss
Oliver
Reply




Users browsing this thread: