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

Basic CSS: Add a Negative Margin to an Element

<style>.injected-text {margin-bottom: -25px;text-align: center;}.box {border-style: solid;border-color: black;border-width: 5px;text-align: center;}.yellow-box {background-color: yellow;padding: 10px;}.red-box {background-color: crimson;color: #fff;padding:…

PowerShell: Uninstalling an Application

$appname='Google Chrome' function uninstallApp($appName){ $alternativeMethod=$false try{ $app = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq $appName}…

Dump Folder Archival Script

Requirements:- Zip any .BAK files that are over 7 days- Delete any zip files that…