Change License Server On Multiple Clients
Hello,
we have one Bartender License Server and multiple Bartender client installations that use that one License Server.
However, we are going to re-install the License Server on a different machine and would have to update all client machines to use that new server.
So currently our clients are setup to use "SERVER-1" as the License Server, and we need to change that setting to "SERVER-2".
Is there any way to do this automatically? By using a GPO or by using the command line?
License Server: 10.0
Clients: mix between 9.20 and 10.0
Thanks in advance!
-
You would need to change the setting via the "Administer>Licensing Setup" menu item.
However, the configuration is saved to the BTLM.ini file found in the "C:\ProgramData\Seagull\BarTender" folder. I suppose you could run a login script to have this file replaced with a file that contains the new config. You could even edit the file in Notepad by simply adjusting the "Address=" and "Port=" entries as needed.
0 -
Thanks, that's exactly what I need!
Is the file always located under "C:\ProgramData\Seagull\BarTender"?
In all versions of windows?
0 -
In older versions of WIndows (pre-Vista) it will be found in: C:\Documents and Settings\All Users\Application Data\Seagull\BarTender
0 -
Thank you sir!
This is the batch file I will be using to deploy the file by using GPO:
@echo off setlocal set ConfigFileOrigin=\\SERVER\share\ApplicationsInstallers\Bartender License Server Config Install\BTLM.ini if "%ALLUSERSPROFILE%"=="C:\ProgramData" (goto WIN7) else (goto WINXP) :WIN7 echo Installing under Windows 7 set ConfigFileDestination=%ALLUSERSPROFILE%\Seagull\BarTender\BTLM.ini goto INSTALL :WINXP echo Installing under Windows XP set ConfigFileDestination=%ALLUSERSPROFILE%\Application Data\Seagull\BarTender\BTLM.ini goto INSTALL :INSTALL copy /Y /Z "%ConfigFileOrigin%" "%ConfigFileDestination%" endlocal
0 -
Great, let us know how you get on.
0 -
What? You don't have faith in my leet DOS coding skills? :lol:
Well, I have good news: it works!
I made a GPO with this as a computer startup script, and it's updating the config file as intended.
Do not set it as a user startup script in the GPO, because the batch file needs Admin Privileges to overwrite the file (at least in Win7). As a computer startup script it runs under the system role, avoiding that problem.
I added a couple of lines to the batch file for logging purposes:set LogLocation=\\SERVER\share\ApplicationsInstallers\Bartender License Server Config Install\logs echo %date% %time% Setup started. > "%LogLocation%\%computername%.txt" ... echo %date% %time% Setup ended. >> "%LogLocation%\%computername%.txt" echo. >> "%ConfigFileDestination%" echo. >> "%ConfigFileDestination%" echo ;Last updated: %DATE% %TIME% >> "%ConfigFileDestination%"
This will create a log file on the server, so we can see on which computers it ran.
It will also add a timestamp in the config file on the client (which is commented out by a semicolon).0
Iniciar sesión para dejar un comentario.
Comentarios
6 comentarios