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 Use Google SMTP Relay with Sendmail

Check to see if TLS is enabled:# sendmail -d0.1 -bv rootMake a certs directory:# mkdir…

PowerShell: How to Send Key Strokes to a Program Graphical User Interface

# WARNING: there's a kill-process command when the target program is already running # so…

PowerShell: Create New Hybrid On Prem Active Directory User with Office 365 Integration

# createNewHybridUser_v0.0.1.ps1# .Description: this script automates the creation of a user account in a hybrid…