Query HTTP Status Code detailed information using Powershell

Web harvest HTTP Status code information from a website and wrap it in a function which can query these statuses to add more verbosity to my web requests.

On top of that, once I have the HTTP Status codes and their description in a CSV, JSON or XML format,  I can repurpose this data in any program/script as desired which is obviously way better than Googling it each and every time when troubleshooting such errors.… Read More Query HTTP Status Code detailed information using Powershell

4 ways to send output to NULL in PowerShell

1. Using Out-Null Cmdlet : Hides/discards the output instead of sending it down the pipeline or displaying it.

2. Typecasting to [void] : This is more of a very C#-flavored trick

3. Redirection to $NULL:  Redirecting the output to the Automatic variable $Null

4 . Assignment to $NULL: Assigning the output to the Automatic variable $Null… Read More 4 ways to send output to NULL in PowerShell

Powershell Tip: Adding leading zeros

I often find myself in situations when I want to PSRemote multiple servers with server names in such a series that has same prefix server names and suffixed by a 2 digit number like- sameprefix05 sameprefix06 sameprefix07 sameprefix08 sameprefix09 sameprefix10 sameprefix11 sameprefix12 sameprefix13 sameprefix14 sameprefix15 and to avoid saving the server names in a file… Read More Powershell Tip: Adding leading zeros

Scrolling Internet Explorer with Powershell

My top preference for data munging and harvesting from The Web is Internet Explorer, Yes, Internet Explorer! 🙂 because I can create an InternetExplorer.Application object and access the HTML DOM to scrape web data as and when required. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review,… Read More Scrolling Internet Explorer with Powershell