Generate Computer ID from Disk Serial Number for NI Licensing

Updated Mar 30, 2021

Reported In

Software

  • NI License Manager

Operating System

  • Windows

Issue Details

NI License Manager (NILM) generates the computer ID from the MAC address per default. If the MAC address changes all licenses are deactivated. How can I change that?

Solution

Prior to NI License Manager 4.0 you can force the ID generation of the computer ID using the disk serial number:
  1. Navigate to Start»Run and type in regedit to open the windows registry tool
  2. If you are on a 32 bit machine, navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\License Manager
  3. If you are on a 64 bit machine, navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\National Instruments\License Manager
  4. Go to Edit»New»String Value
  5. Set the name of this key as DiskOnly
  6. Set the value of this key as True
The next time you open NI LIcense Manager (NILM), the computer ID should now be permanently generated from the hard disk serial number.

From NILM 4.0 this function does not work, but you can achieve the same results using the following command in Windows Command Prompt:
  1. Open Windows Command Prompt
  2. Type in the following commands:
cd C:\Program Files (x86)\National Instruments\Shared\License Manager\
NILicensingCmd.exe /diskOnly True

 

You should see the DiskOnly set to "True" message as shown on the image below.

This will change the source of the ID to the disk serial number for both the NILM and the generateComputerId.exe. Similarly you can deactivate this option by setting the /diskOnly parameter False using the Command Prompt.

 
 

Additional Information

It may be necessary to reactivate some software if it was previously licensed under a different computer ID.

The Computer ID generation can be also achieved programmatically using LabVIEW. If you want the ID to be consistent you can use the DiskOnly parameter to make the ID to be always based on the disk serial.