What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags




i worked before with the this script for ad directory replication status..: "repadmin.exe /showrepl mivtachim.co.il | FINDSTR /R /I /C:"fail", /C:"koko" >NUL && ECHO 2:Error || ECHO 0:OK 0:OK"

but how can get the same script at powershell ?

active-directory powershell prtg13

Created on Oct 30, 2014 8:04:10 AM

1 Reply



Dear Avi

Our technical support does not cover custom programming. It is possible to look for substrings with powershell with the .Contains method. It is also possible to create a control structure to either output 2:Error or 0:OK.

Powershell's If control structure is similar to the syntax used in bash, with some internet search it is easy to find examples.

Created on Nov 4, 2014 12:58:59 PM by  Arne Seifert [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.