Website monitoring solution

Find out the status of websites

Reading time <1 Minute

Check website status and response time

With this script we determine the status of websites and their response times. If a website is not available, the status code is also determined and returned.

The whole thing can also be used as a monitoring solution and the result can be sent as an email.

Quickly create a task and the monitoring is done.

Find out the status of websites

$ action = New-ScheduledTaskAction powershell.exe -Argument “-file C: \ Install \ WebsiteChecker.ps1.ps1” -WorkingDirectory “C: \ WINDOWS \ system32 \ WindowsPowerShell \ v1.0”

$ trigger = New-ScheduledTaskTrigger -daily -At 07:00

$ principal = New-ScheduledTaskPrincipal -UserID dwp.local \ MSA-CheckSG $ -LogonType Password -RunLevel highest

Register-ScheduledTask WebsiteCheck –Action $ action –Trigger $ trigger –Principal $ principal

Here's an example:

Determine website status via Powershell

Website monitoring

Script Download:

WebsiteChecker

Invoke-WebRequest and find a Value