LicenseWatch FAQ
Using the LicenseWatch Client in a Citrix / Terminal Server Environment
If you run the LicenseWatch client in a Citrix or other terminal server environment, then all the clients will report the same hostname: the name of the terminal server.
Therefore you must change the command to launch the client so that it reports the logon name as hostname. Add the argument –U to the command:
\\[server]\LWClient\LWPreloader.exe [server]/LWClientRequestHandler -U
This will cause the client to report VIRTUAL_[logon name] as hostname.
In order to launch with the -U argument on Citrix clients and without the –U on normal clients you could use the following code snippet in the logon script:
if .%SESSIONNAME%. == .. goto NOT_REMOTE_SESSION
if /i .%SESSIONNAME%. == .Console. goto
NOT_REMOTE_SESSION
\\[server]\LWClient\LWPreloader.exe
[server]/LWClientRequestHandler -U
goto END
:NOT_REMOTE_SESSION
\\[server]\LWClient\LWPreloader.exe
[server]/LWClientRequestHandler
:END
… or, translated to VBScript:
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
strSessionName = WshShell.ExpandEnvironmentStrings ("%SESSIONNAME%")
If strSessionName = "Console" or strSessionName = "" or strSessionName = "%SESSIONNAME%" Then WshShell.Run "\\[server]\LWClient\LWPreloader.exe [server]/LWClientRequestHandler", ,TRUE
Else
WshShell.Run "\\[server]\LWClient\LWPreloader.exe [server]/LWClientRequestHandler -U", ,TRUE
End If
