Random Project

PowerShelle script error

Hello,
Thanks for this very good script.

It works perfectly for most of my servers, except for some one with whom the execution of the script return me an error.

Get-Counter : The specified object was not found on the computer.
At C:NagiosMonitoringNagiosMonitoring_AD_ReplicationCheck.ps1:208 char:41
+ $strDRAInboundBytesTotal = (Get-counter g_AD_ReplicationCheck.ps1:208 char:135
+ $strDRAInboundBytesTotal = (Get-counter -ComputerName $env:computername -Counter “NTDSDRA Inbound Bytes Total/s
ec”).countersamples[