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 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()