[New Version] Gridify PowerShell Module v0.9.2
What’s New?
The Set-GridLayout cmdlet now accepts [System.Diagnostics.Process[]] objects as a parameter instead of Process ID’s.
‘-IncludeSource’ switch to add source process in the grid layout
A new ‘Cascade’ layout is available now. Cascade layout sets all application in a step-like layout, such that the next one overlapping the previous one
Ability to define application width ratios in a -Custom Layout. This enables you to define width-ratio of applications in every row, to give the ability to customize application width sizes as per the requirement.
Like, to define a ratio precede the asterisk of that application with a number such as -custom “*2*3*” is 1:2:3
Set-GridLayout – Arrange Applications in Automatic Grid with PowerShell
I’ve worked on a couple of Powershell automation frameworks, that are always-ON, which is basically a bunch of scripts continuously running on a machine to monitor, test, build or for any other possible use case. One can check the live status of these scripts by logging onto the box and resize-drag-arrange any spawned script or application properly on the screen so that they don’t overlap so that you can read them properly, which I personally found very irritating.
Similarly, when I was testing socket programmed python chat application I wrote, from multiple Telnet clients it was mess to arrange and resize, something like in the below screenshot
but recently, when I started working on one of my bot’s which spawns multiple PowerShell script jobs on my screen , I literally lost my patience while testing and started a parallel side project to set all PowerShell consoles (or any other application) automatically in a grid layout like in the below image.
Thanks to that NO MORE RESIZE-DRAG-ARRANGE! phew!
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
Adding leading zero with PowerShell Format Operator
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…
Programmatically Scroll 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…
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.
Powershell Weather Report and Forecasting
I came across some fun stuff on the internet, so I wrote a quick wrapper to make a Powershell weather forecasting Function for this blog post. The idea is to get the weather report in Powershell console using this cURL implementation converted into Powershell function…
Categories
Author of Books
Awards
Open Sourced Projects
Author at
Blog Roll
Mike F RobbinsDamien Van Robaeys
Stéphane van Gulick
Kevin Marquette
Adam Bertram
Stephanos Constantinou
Francois-Xavier Cat
Ravikanth Chaganti
Roman Levchenko
Blog Stats
- 1,131,934 People Reached