Hi there
I'm trying to monitor our Skype for Business Servers - without much luck though :( How can I get my script to be run on the remote server itself?
Script:
$query = Get-CsWindowsService RTCMEDSRV [string]$result = $query.ActivityLevel [string[]]$splitResult = $result.Split('=,')[1,3,5,7] [int]$InboundCalls = $splitResult[0] -as [int] [int]$OutboundCalls = $splitResult[1] -as [int] [int]$InboundPriCalls = $splitResult[2] -as [int] [int]$OutboundPriCalls = $splitResult[3] -as [int] $InboundTotalCalls = $InboundCalls + $InboundPriCalls $OutboundTotalCalls = $OutboundCalls + $OutboundPriCalls Write-Output $InboundTotalCalls
PRTG Error: Response not well-formed: "(Get-CsWindowsService : The term 'Get-CsWindowsService' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Regards
Patrick
Add comment