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

PowerShell: Invoke Backup SQL Database

Function to invoke SQL Backups on a Remote SQL Server: # invokeSqlBackup.ps1 # Version 0.0.1…

PowerShell: Get-NetTCPConnection for Windows 7 & 2008

On Windows 8 & 2012, there's this nifty function named Get-NetTCPConnection that is useful to…

PowerShell: Get Ports to Process Connections / Associations

Current Iteration: Here is a quick snippet to enable Network Engineers and Systems dudes to…