New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


power

Votes:

0

Your Vote:

Up

Down

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 by  avi azerrad (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

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]



Please log in or register to enter your reply.


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.