Automating Software Activation
- Updated2025-11-21
- 2 minute(s) read
License administrators or NI software delivery managers can automate software activation and add volume license servers.
To do so, run License Manager from the command line or from a batch file using NILicensingCmd.exe.
- For 64-bit computers: Program Files (x86)\National Instruments\Shared\License Manager\NILicensingCmd.exe
Software Activation Command-Line Flags
Below is a table containing common command-line flags associated with software activation. You can see descriptions of the License Manager command-line flags by entering the command NILicensingCmd.exe /help.
| Flag | Description | Syntax | Example(s) |
|---|---|---|---|
| /activateall |
Launches the Activate Software window. This command is equivalent to clicking the Activate Software button in License Manager. |
NILicensingCmd.exe /silent /activateall /serialnumber <serial number> | NILicensingCmd.exe /silent /activateall /serialnumber A11B11C11 |
| /activate /type package |
Launches the Activate Software window with a preselected package or family. These commands are equivalent to right-clicking on software or family in License Manager and selecting Activate Software. |
NILicensingCmd.exe /activate /type package /name <packagename> /version <version> /serialnumber <serial number> | NILicensingCmd.exe /activate /type package /name LabVIEW_PDS_PKG /version 17.0000 /serialnumber A111A1A11 |
| /activate /type family | NILicensingCmd.exe /activate /type family /name <familyname> /serialnumber <serial number> | NILicensingCmd.exe /activate /type family /name LabVIEW_ADE_170000 /serialnumber A12B12345 | |
| /applyactivationcodes |
Activates one or more licenses using the activation codes provided. This command is equivalent to clicking activate software and selecting Enter activation codes in License Manager. |
NILicensingCmd.exe /applyactivationcodes [<activation code1>,<activation code2>, [, ...]] | NILicensingCmd.exe /applyactivationcodes 5CFL-Q7JG-X7GV-XL83-NDSM,FHFZ-V3MP-S3RY-FHRJ-69HY |
| /silent |
Activates a software silently.
Note This command requires an
Internet connection that allows access to the NI website over an encrypted web
connection (https). Serial numbers are optional for silent activation. If you log into your NI User Account before running command-line arguments, License Manager checks your account for any necessary software licenses. Silent activation fails if you:
Note If silent activation fails,
error messages do
not
interrupt
the
remaining automation scripts. You must manually activate the
failed activations before you can use your software.
|
NILicensingCmd.exe /silent /activate /type package /name <packagename> /version <version> /serialnumber <serial number> | NILicensingCmd.exe /silent /activate /type package /name LabVIEW_PDS_PKG /version 9.0000 /serialnumber A111A1A11 |
| /addservers |
Silently points a computer to a volume license server to check out licenses. This command is equivalent to selecting to add a volume license server. |
NILicensingCmd.exe /addservers servername[:portnumber][,servername[:portnumber],...] |
|
Related Information
- Activating Software
Activate software products using NI License Manager.
- Setting up Volume License Server Access
Use License Manager to enable the use of a volume license server.
- NI Volume License Program for Software
