How to watch or monitor a site using Powershell
2,908 views · Published 21 December 2016 · 6:56 · Indexed 13 October 2026
Channel: Bill Hertzing · 2016 · Entertainment
In this video I explain how to monitor a site using a PowerShell script. This is different from PING as it is looking for a status code of the site.
Quick Reference:
while ($true -eq $true) {curl DOMAIN_NAME.COM | findstr "StatusCode"; sleep 5}
To see more details about the command please visit my tech tips site at http://techtips.billhertzing.com/post/watch-a-site-using-powershell/
______________________
Bill Hertzing on Social Media:
YouTube- https://www.youtube.com/user/bhertzing
Instagram- https://www.instagram.com/bhertzing/
Twitter- https://twitter.com/billhertzing
http://blog.billhertzing.com/
http://techtips.billhertzing.com/