Answer the question
In order to leave comments, you need to log in
How to poll a web address in a script?
Hello, I needed to make a script to check the operation of a program / service and restart it.
I will make a reservation that I am new to PS, but by googling for various examples I wrote what is required, and in general it works.
Having omitted the unnecessary context, the problem is that I need to check the availability of the program's web interface, I implemented this through the function
if ((Test-NetConnection 127.0.0.1 -Port 8088).TcpTestSucceeded)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question