Hello,

I currently have one problem with a powershell-script. I want to use the same script for different servers and probes, which is no problem in itself. My problem comes in, when I wanna run the powershell-script on the probe or on other servers. The script uses Get-WmiObject and I use credentials that are provided from PRTG, which works in itself, but I can't use "-Credentials" on the same server.

My idea is to compare the probe-IP to the device-IP. The IP of the device will be given by %host, but I can't find an option to provide the probe-IP for the script.

Can anyone help here?

With kind regards, Martin


Article Comments

does "%probe" work? what have you tried? also, to better understand your issue - could you share the script?


Jul, 2020 - Permalink

Thanks for the answer.

Quick information:

%probe will not work as the name of the probe is not the same as the hostname. %probe is in my understanding the internal name of the probe in PRTG.

I will close this post. The script was implemented so we could see changes in the capacity of a harddrive. (WMI did not show this) But I saw the problem yesterday and couldnt find the answer. Today I realised SNMP does provide this information. So I will change the whole harddrive monitoring to SNMP and this should work.


Jul, 2020 - Permalink