Here is a quick tip to escape all special characters in a string using the .Net Type accelerator for Regular expression [RegEx] … Read More Powershell Tip: Escaping special Characters in a String using [RegEx] type accelerator
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.
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
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
Hello Reader! To Review and understand scripts written by another developer, I often find Comments helpful. PURPOSE : I was looking for a way through which we can extract all comments. Just to get a skeleton view of script’s functionalities documented by the programmer. Saves me some time! So today’s tip is about extracting all comments from a Powershell script,… Read More PowerShell Tip : Extract Comments from Script
An Enum type is a data type that enables a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Enums can be more descriptive rather using just a number. Enums are used to declare an enumeration, a distinct type that… Read More Powershell Tip: Using Enum as Parameter Validation
Inspired by “Leon Bambrick” blog, I’ve decided to start a Category on my blog wherein I’ll be posting small stuff that I learn that never get a chance to land up on a blog post. It can be a Tip, single line of code or concept, anything that is worth sharing. Leon is a great… Read More Powershell Tip : Identify variables in the scripts open in Powershell ISE