Zoomed Image

Registry Value and WMI Query

Endpoint Management Guide

Look at a Computer

Registry Value and WMI Query

Registry Value reads one registry value on the selected computers. WMI Query runs one WMI query on them. Both read only and change nothing.

Registry Value

Endpoints > Endpoint List > select one or more computers > Fetch > Registry Value.

The dialog title is Read Registry Value.

Field What it does Default
Computers The computers to read The selected computers
Hive The registry hive, chosen from a list HKLM - Local Machine
Key The key under the hive, without the hive name Blank
Value Name The value to read Blank

The Hive list has four choices:

Hive Use it for
HKLM - Local Machine Settings for the whole computer. Most checks use this hive.
HKU - All User Profiles Settings for one user. Start the key with the user SID, for example S-1-5-21-...-1001\Software\Microsoft\Office.
HKCR - Classes and File Types File associations and installed COM classes
HKCU - Agent Account Only - not the logged-on user The agent runs as SYSTEM, so this hive is the SYSTEM account. It does not show the settings of the person using the computer. For those, use HKU with their SID.

Worked example: choose HKLM, enter Key SOFTWARE\Microsoft\Windows NT\CurrentVersion and Value Name ProductName. The result is the Windows edition, for example Windows Server 2019 Datacenter.

A value that does not exist returns an empty result.

Read Registry Value dialog with DEVDC and the default hive, key path and ProductName value name

WMI Query

Endpoints > Endpoint List > select one or more computers > Fetch > WMI Query.

Field What it does Default
Computer Names The computers to query The selected computers
Query A WQL query, for example select Caption from Win32_OperatingSystem Blank
Field The property to return from the first row Blank
Namespace The WMI namespace root\cimv2

With a Field, the result is that property's value from the first row returned. Without one, the result is the number of rows the query returned.

Worked examples:

Query Field Result
select Caption from Win32_OperatingSystem Caption Microsoft Windows Server 2019 Datacenter
select * from Win32_Service where State = 'Stopped' Blank The number of stopped services, for example 94

After you click Yes

Both actions are queued. The message reads "Sent to the selected computers." and asks "Do you want to follow it now?". Yes opens Endpoints > Endpoints Dashboard > Activity. The result is on each computer's row. See Following a run.

Undo

Nothing to undo. Both actions read the computer and change nothing.

Key points

  • Both actions need the agent. See Agent and Agentless.
  • Each run returns one value per computer. To compare one value across many computers, select them all in one run.
  • For common questions such as the Windows version or a registry value by full path, Ask the Fleet shows every answer on one screen.