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