I am trying to use a powershell script to retrieve the complete version of a dll file. I'm using the following script based on another post I found here, however, the sensor only displays OK on the PRTG console. It does work perfectly in powershell itself.
$return_fileversion = (Get-Command "
server\path\path\path\path\file.dll").FileVersionInfo.Fileversion
write-host $return_fileversion + ":OK"
Can anyone assist with how to get the actual version number (1.1.5653.7) to return to the PRTG console? Our goal is a dashboard displaying multiple website versions we host for our customers based on the same internally developed platform.
Thanks. - William
Add comment