How Do I Programmatically Retrieve My Computer ID?

Updated Dec 5, 2020


Operating System

  • Windows

How can I programmatically retrieve my Computer ID used by NI Licensing without using NIĀ License Manager?

The Computer ID is calculated by generateComputerId.exe. You can run this executable manually, e.g. from the Windows Command Prompt.
The executable is located atĀ <National Instruments>\Shared\License Manager\bin\. Once the Command prompt is open, you can e.g. drag and drop the executable into it and press Enter.

If you wish to retrieve the Computer ID from your LabVIEW application program, you can use System to run the executable.

Additional Information

Make sure you do not run the executable by itself, Windows will close the automatically-opened Command Prompt window after the executable has finished, therefore you will not be able to see the ID generated.

You can also use this executable as a step in automating NI software activation. Reference the related links below for more information.