03-23-2023 12:42 PM
I'm trying to deactivate/activate NI licenses from the Windows terminal, so I'm trying to use NiLicensingCMD. However, I can't find any documentation of how to use it.
Where is the documentation? How do I list the possible SW family names that I can use with the /activate argument? How does the /deactivate argument work (it is unlisted in the /help)?
03-24-2023 06:16 AM
Hey, Dana:
You have at least 2 methods to view the operation help for the SW activation
Method 1:
From the command line, change directory to your NI License Manager software directory, and then run the following command:
NILicensingCmd.exe /help
You can see all the parameters and instructions
Method 2:
In your NI License Manager software directory, open nilm.chm, and you can see the specific operation description
04-03-2023 10:59 AM
I know about /help, however it doesn't give information for what accepted values can be used for the SW family argument for activating a license. Also, /help doesn't list the /deactivate option. If you try "NILicensingCmd.exe /deactivate", it recognizes it as a valid option, but it says that it's missing arguments and I can't find documentation that says what arguments /deactivate requires.
04-05-2023 09:33 AM
about activate, you can try it with the cmd as below:
NILicensingCmd.exe /activate /type family /name TestStand_2017 /version 17.0.0 /serialnumber A123A1A11
I have tried. I wrote the serialnumber in this command casually, so the prompt failed to activate, but it did not tell me syntax error.
But regarding deactivate, I did not find any information or attempt to come up with a valid command syntax.
I will continue to follow this issue. If there is any news, I will reply to you.
10-04-2023 09:51 AM
@Dana517 wrote:
I know about /help, however it doesn't give information for what accepted values can be used for the SW family argument for activating a license. Also, /help doesn't list the /deactivate option. If you try "NILicensingCmd.exe /deactivate", it recognizes it as a valid option, but it says that it's missing arguments and I can't find documentation that says what arguments /deactivate requires.
I also am trying to deactivate license from Windows terminal. I ultimately want to create a script/batch. When I enter NILicensingCmd.exe /deactivate from the command line window, I get the message "ERROR: "/deactivate" is not a valid command line flag. Use "/help" to view the list of valid flags." My License Manager version is 4.6 and appears to not even have the deactivate option at all. Which version of License Manager are you using?
10-04-2023 10:52 AM
I'm running version 21.3. You can download and update yours for free -- you don't need a new license or anything. Here's the link: https://www.ni.com/en/support/downloads/software-products/download.license-manager.html#445898
10-04-2023 05:03 PM
Dana, the required format of the command would be something like this "NILicensingCmd.exe /deactivate /name LabVIEW_FDS_PKG /version 22.0300", which will deactivate the local license file installed by the software.