Setting up HWID

The agent uses the Unique Disk Identifier (HWID) to register with the server and interact with the monitoring service.

From version 5.8.2583 of iBatyr Monitor 5.5 for Windows agents, new parameters have been added that allow:

  • select the HWID type that will be used during installation;

  • remove the current HWID from the registry and install a new one.

Note

The HWID parameters are optional. By default, the HWID will be set based on the computer’s unique hardware data.

Parameters are passed in two ways:

HWID parameters

  • hwid is the HWID value, which depends on the selected type: HWID, HWID-FQDN, or FQDN.

  • use_fqdn is an HWID type that can take the following values:

    • 0 (or absence of parameter) - HWID - identifier based on the unique hardware data of the computer in GUID format, for example: 076ee660-54b6-49c3-baaf-b0f8bb81f9e1. It is saved in the registry and does not change when the name or network settings are changed. When deleted, it is generated again.

    • 1 - HWID-FQDN - Uses the computer’s fully qualified domain name (FQDN) in lowercase. It is saved in the registry and does not change. When deleted from the registry, it is generated again.

    • 2 - FQDN - computer’s fully qualified domain name (FQDN), is not saved or read from the registry. This value is generated each time the agent is started. When deleted from the registry, it is not created again.

Note

The HWID type and value are stored in the registry key: HKEY_LOCAL_MACHINESYSTEMSCHWID.

Passing parameters via the msiexec command

Two new parameters have been added to the msiexec agent installation command:

  • DROPHWID:

    • DROPHWID=1 - deletes the current HWID and generates a new value.

    • DROPHWID=0 - does not delete the current identifier.

If the value is incorrect, the HWID type will not change, and a message will appear in the installer log.

  • HWIDMODE:

    • HWIDMODE=HWID, HWIDMODE=HWIDFQDN, HWIDMODE=FQDN - sets the HWID type. If the value is incorrect, an error message will appear in the log.

Example command that will remove the current HWID and set the HWID-FQDN:

msiexec.exe /norestart /l*vx install.log /qn /i "C:\Windows\agent.msi" GATE_URL="ibatyr_server" GATE_URL2="ibatyr_server_reserve" GATE_PORT=port GATE_PORT2=port2 ALLUSERS=1 REBOOT=ReallySuppress DROPHWID=1 HWIDMODE=HWIDFQDN

Note

If options are specified in both the MSI file name and the command line, the command line options will take precedence.

Passing parameters during deferred installation

New settings can be applied during deferred installation.

An example command that will reset the HWID and apply the HWID-FQDN setting after a system reboot:

msiexec.exe /i "Agent.msi" /qn /l*vx "install.log" GATE_URL="main.server.url" ALLUSERS=1 REBOOT=ReallySuppress REINSTALLMODE=amus DROPHWID=1 HWIDMODE=HWIDFQDN AGENT_FORCE_REBOOT=delayed

Passing parameters via MSI file name

Remote Installation Utility version 1.2.0.18 and higher supports passing HWID parameters via the MSI file name.

Before running the utility add the following substrings to the file name:

  • drophwid - removes the current HWID from the registry and generates a new value;

  • hwidmode=hwid, hwidmode=hwidfqdn or hwidmode=fqdn - indicates the HWID type.

Rules for specifying parameters:

  • parameters can be specified in any order and in any register;

  • one or both parameters may be missing;

  • if the parameter is not specified or specified incorrectly, the identifier type will not change, and a message about the incorrect value will appear in the installer log;

  • the server takes the HWID parameters from the file name, but ignores the server URLs in the MSI file name - they are taken from the utility settings.

An example of a file name that will replace the old HWID with HWID-FQDN:

Agent[main.server.url{reserve.server.url}]-drophwid-hwidmode=hwidfqdn.msi

where the minus sign (-) is a separator character.

Warning

Do not use the renamed MSI file for the Repair operation if it has the same Product Code. The operation will fail because Windows Installer cannot find the correct installation file by its original name.

Repair is a Windows Installer feature that allows you to repair or fix an installed program if it is not working correctly or if some files have been deleted or damaged.

ProductCode is a unique identifier (GUID) for each MSI package that Windows Installer uses to recognize and manage installed programs. Allows the system to distinguish one version of a program from another, especially when updating, restoring, or uninstalling. If different MSI packages have the same ProductCode, Windows considers them to be the same program.