Hi.
I have created a powershell script that reports the status of the value of NetworkCategory from Get-NetConnectionProfile.
My custom EXE/Powershell script is...
$ConProf = Get-NetConnectionProfile | Select -ExpandProperty NetworkCategory If ($ConProf -eq "DomainAuthenticated") {write-output 0:Domain} else {write-output 1:Non-Domain}
When executed manually (using enter-pssession) from the PRTG server (probe) to a remote machine it returns "0", which is correct and expected.
However, the sensor returns the value of "1", which is incorrect. Where have I gone wrong?
Add comment