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 Tip : Use XML Indentation to make it more readable

Hey guys! Today’s blog post is a quick Powershell tip which is useful when we’ve to generate Dynamic XML using a Powershell script, if the file gets huge it gets difficult to read the XML data , hence in such a case Indentation comes handy. HOW  TO MAKE IT WORK ? Use System.IO.StringWriter  and System.XMl.XmlTextWriter classes… Read More Powershell Tip : Use XML Indentation to make it more readable

Customizing Directory Path in PowerShell Prompt()

Tired of Long unwanted directory paths in Powershell terminal?  Well I’m! Totally tired of looking long directory paths because I spent most of the my time working on Powershell terminals THE PROBLEM : When Dealing with long directory paths, we are literally typing on right hand side of your powershell console, moreover console starts wrapping the text when your command… Read More Customizing Directory Path in PowerShell Prompt()

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

PowerShell Tip : Extract Comments from Script

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