Skip navigation

JSI Tip 6940. How can I force a Windows Server 2003 Terminal Services server to use a specific license server?

By default, Terminal Services servers work with license servers in their own domain, which may force them to use WAN links to find a license server.

You can force a Terminal Services server to use a specific license server, even from a different domain, as long as the domains trust each other. You can configure all Terminal Services servers in a site to use the same license server in that site.

I have scripted LicenseServer.bat to configure a Windows Server 2003 Terminal Services server to use a specified license server.

The syntax for using LicenseServer.bat is:

LicenseServer ServerName

where ServerName is the computer name of the license server you want to use.

LicenseServer.bat contains:

@echo off
if \{%1\}==\{\} @echo Syntax: LicenseServer ServerName&goto :EOF
if not exist \\%1\c$\*.* @echo License Server %1 NOT found.&goto :EOF
@echo REGEDIT4>%TEMP%\LicenseServer.reg
@echo \[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TermService\Parameters\LicenseServers\%1\]>>%TEMP%\LicenseServer.reg
regedit /s %TEMP%\LicenseServer.reg
del /q %TEMP%\LicenseServer.reg



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish