Activating Licenses from the Local License Server

You can activate licenses from the Local License Server using the command line or a batch file.

Verify the License Client is not running concurrently.
Note: You can activate one or more activation codes by separating them with a semicolon. Do not use spaces between the activation codes.
  • To activate licenses from the DOS command line:
    1. Open a command-line interpreter window with Administrator privileges.
    2. Navigate to "c:\Program Files (x86)\Proficy\Proficy Common\Proficy Common Licensing\ProficyLicenseViewer"
    3. Activate a license from a local license server at IP= by entering:
      "Start/wait ProficyLicenseWizard.exe -Lease=1111-1111-1111-1111;2222-2222-2222-2222 -Server= -Port=1111"
      Note: For the parameters Server and Port, use the server and port number that correspond to your Local License Server.

    You should receive the following response:

    "License(s)  were deployed successfully."
    Note: If there is an error executing the command, a message appears. For more details, see the Proficy License Client log file.
  • To activate licenses using a batch file, enter the commands in the following format in your batch file:
    echo  off
    Start/wait  ProficyLicenseWizard.exe -Lease=1111-1111-1111-1111;2222-2222-2222-2222 -Server= -Port=1111
    if  errorlevel 1 (
       echo The command failed. Error code=%errorlevel%
      exit /b %errorlevel%
    echo  Success
    The command returns 0 when successful, or one of the error codes defined in the command return code table.