PowerShell: Tokenization and Abstract Syntax Tree

Introduction A few days ago in a discussion on Facebook’s PowerShell Group, I realized the many people don’t understand how to Tokenize or Use Abstract Syntax Tree to understand your PowerShell scripts better. I think the reason behind this unawareness is mostly because it doesn’t affect your ability to write better scripts, but you’ve to agree it… Read More PowerShell: Tokenization and Abstract Syntax Tree

Powershell Auto Mute, when headphones are accidently unplugged.

Do you know mobile phones have an inbuilt feature to Auto mute a playing song/music, if by mistake you plug out your earphones from the jack, that prevents your phone to keep playing the music on speakers, which could be quite embarrassing in some surroundings and situations, but unfortunately we don’t have such a feature available on our desktops/laptops 😦
And I was victim of such an embarrassing situation a few days back, So I thought why not to look for a solution available to fix this for me? Really I didn’t care much about finding one but was more interested in making one with Powershell! :)… Read More Powershell Auto Mute, when headphones are accidently unplugged.

Powershell Tip : Parsing HTML from a local File or a String

INTRODUCTION : If you are familiar with Invoke-WebRequest cmdlet then you must be aware that you get a parsed HTML from the requested Web URL. DOM structure of this Parsed HTML could be utilized to get access to HTML elements of the web page, like in the below animation – PROBLEM : What if we have HTML files are locally… Read More Powershell Tip : Parsing HTML from a local File or a String

Powershell : Decompiling – Compiled HTML Help (.CHM) files and Data Wrangling

WHAT IS COMPILED HTML HELP (.CHM)? Microsoft Compiled HTML Help is a Microsoft proprietary online help format, consisting of a collection of HTML pages, an index and other navigation tools. The files are compressed and deployed in a binary format with the extension .CHM, for Compiled HTML. The format is often used for software documentation,… Read More Powershell : Decompiling – Compiled HTML Help (.CHM) files and Data Wrangling