NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to deactivate a license from the Windows terminal

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)?

0 Kudos
Message 1 of 7
(1,513 Views)

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

58.png

     Method 2: 

    In your NI License Manager software directory, open nilm.chm, and you can see the specific operation description

23.png

0 Kudos
Message 2 of 7
(1,488 Views)

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.

0 Kudos
Message 3 of 7
(1,432 Views)

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.

0 Kudos
Message 4 of 7
(1,402 Views)

@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?

0 Kudos
Message 5 of 7
(1,139 Views)

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

 

0 Kudos
Message 6 of 7
(1,132 Views)

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.

Scott Richardson
https://testeract.com
0 Kudos
Message 7 of 7
(1,114 Views)