KB Article #163407

"Product is not licensed" returned upon executing SC from the command line

Problem

When running a SecureClient script from the command line, the following error appears:

! INFO FtpCSGlobalConfig Secure Client home directory: C:\Documents and Settings\<USERNAME>\Application Data\axway\SecureClient

Product is not licensed! There are no licensed features or your license has expired.


even though the UI shows that the product is licensed.


Resolution


This issue occurs when the SecureClient script is executed from the command line (CMD) outside SecureClient's home folder, and the CMD session is not started with Administrator privileges.


For example:


"C:\Program Files (x86)\Axway\SecureClient\sclient.cmd" script "C:\Program Files(x86)\Axway\SecureClient\Script.txt"


To execute the script properly, either of the following should be performed:

1. Execute the command from the SecureClient's home folder, with the script inside:


sclient.cmd script script.txt



2. Execute the command from a command line (CMD) session, started with Administrator privileges ("Run As Administrator").