Running PRTG 12.4.6.3230 on Windows server 2012 and have a powershell script that works fine att the PRTG/probe server. Set-ExecutionPolicy Unrestricted on the PRTG/probe sever
** $replikationstatus = Get-VMReplication -ComputerName hv_rep01 | where {$_.health -ne "Normal"} if ($replikationstatus.count -eq 0) { Write-host "Replikeringsstaus OK",":OK" exit 0 } else {Write-host "Replikeringstatus fel","Error" exit 2} **
When I run the script as Custom EXE/Script I dont get anny error, just an 'Last Message' that says 'UnauthorizedAccess' with last result 0 #
What am I missing with rinning powershell in PRTG?
Add comment