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.
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
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…
Plot Graph in Powershell console
* Color-coded output depending upon the Value of the Datapoint; Above or below predefined thresholds
* Display custom information on X and Y-Axis labels
* A Graph in the console that is independent and fully customizable, not like Task Manager’s (no need to switch to Performance Tab) and,
* Could be easily used in any Powershell script to monitor performance on any defined parameter, which I see as the biggest benefit of the function.
* Function consumes data points, generated during script execution or Pre-stored data like from a file or database.