I have made a custom sensor that uses a Powershell script to show the file version of an executable, the script is below:
(Get-Command "C:\XXX\XXX\XXX\XXX.exe").FileVersionInfo.Fileversion
Using this, the version does display correctly in the monitor. However, it displays in an error state. How do I make it so that it no longer is an error, but still displays the file version of an executable?
Much appreciated in advanced.
Add comment