display registry key values

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: display registry key values

Post by ssax »

You can try this:

Code: Select all

@echo off
FOR /F "tokens=*" %%g IN ('REG QUERY HKEY_LOCAL_MACHINE\Software\McAfee\Endpoint\Common\ /v ProductVersion ^| findstr ProductVersion') do (SET OUTPUT=%%g)
echo %OUTPUT:~28%
exit 0
Please note that helping write custom plugins is not included as a part of support. Any additional features will need to be implemented by you.
Locked