该内容不适用于您选择的语言

该内容将以另一种语言显示出来。 您可使用浏览器的翻译功能查看内容。

Generate Computer ID From Disk Serial Number for NI Licensing

Updated Apr 6, 2026

Reported In

Software

  • 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

There are two ways to modify the way a computer ID is generated, depending on the version of NI License Manager you have installed. In addition, there is a third way to achieve this programmatically.

 

  • 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, the computer ID should now be permanently generated from the hard disk serial number.
 
  • From NI License Manager 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 NI License Manager and the generateComputerId.exe. Similarly, you can deactivate this option by setting the /diskOnly parameter False using the Command Prompt.

 

  • The Computer ID generation can also be 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.

 

 

Additional Information

Note: You may need to reactivate your installed software if it was previously licensed using a different computer ID.