Posted On December 6, 2019

PowerShell: Quick 1-Liner to Check Status of URL

kimconnect 0 comments
blog.KimConnect.com >> Codes >> PowerShell: Quick 1-Liner to Check Status of URL

The kommand:

Invoke-WebRequest "https://blog.kimconnect.com" -MaximumRedirection 0 -ErrorAction SilentlyContinue | Select-Object StatusCode,StatusDescription

Sample Result:

StatusCode StatusDescription
---------- -----------------
200 OK

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

How to Import Files Into a Docker Container

1. Use SCP to copy files to the remote server while logged onto the local…

How to Host Multiple Domains with SSL Using Microsoft Information Service (IIS)

Step 1: Add SSL Certs into the computer information store Here's a sample script to…

PowerShell: Convert Array to Hash and back to Array

# convert 2D Array to Hash Table while removing any duplicate keys function arrayToHash($arr){ $hash…
Other project: DragonCoin.com