FLexlm feature name Real-Time_Workshop is invalid for using flexlm tool to return license early

When I try to return a borrowed license via lmutil (lmutil lmborrow -return -c ".\..\..\..\network.dat" -u %username% feature "Real-Time_Workshop") I got the following message: lmborrow: Lmborrowl utility is required for returning features containing a hyphen in the name. (-236,14813)
This is due to the fact that only underscores are allowed. Is there anything I can do on that. Using the Matlab Gui does take a long time to start and I like to return licenses via batch
Thanks in advance
I am using Matlab R2024b

 Accepted Answer

Answer from AI:
The Flexera (FlexNet) error you are experiencing happens because the standard lmutil lmborrow command struggles with feature names containing hyphens (-).
You can easily automate your license return via batch script without waiting for the slow MATLAB GUI to load. Here are the two best workarounds to resolve this:
Option 1: The MATLAB CLI Batch Method (Recommended)
Instead of launching the heavy desktop GUI, you can trigger MATLAB in headless -batch mode. This starts a lightweight command-line instance of MATLAB in seconds, runs the built-in return command, and closes automatically.
Add this line to your batch script:
cmd
matlab -batch "lmborrow('return', 'Real-Time_Workshop')"
Note: MATLAB's internal lmborrow function natively handles hyphens and automatically looks up your license paths, so you don't even need to specify the -c or -u flags.
Option 2: Use the lmborrowl Syntax
As the error message indicates, Flexera provides a specific utility variation named lmborrowl (with an "l" at the end) to handle long or hyphenated feature names.
Depending on your MATLAB installation directory (typically inside matlabroot\bin\win64\), you can invoke it directly via lmutil:
cmd
lmutil lmborrowl -return -c .\..\..\..\network.dat -u %username% Real-Time_Workshop
(If your lmutil doesn't automatically route this, check your MATLAB network folder to see if a separate executable named lmborrowl.exe is present, and call that directly).
Asking AI a second time if both options work for MATLAB 2024b, the answer is that only Option 1 seems to be valid.

More Answers (0)

Categories

Products

Release

R2024b

Tags

Asked:

on 8 Oct 2026 at 12:43

Edited:

on 8 Oct 2026 at 13:27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!