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.
How about if I can automate sharing Mulitple Random blog posts to twitter, few times a day, without even investing the time I would’ve actually spent doing that manually. Sounds great, right? ( Well, to me 🙂 )… Read More Automating “From the Blog Archives” Tweets using Powershell
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
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
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()
Hello Reader! Right now I’m sitting in a Cafe near my place, where I spend most of my weekends and was going through few of my old Powershell scripts, I saw the one which I’m sharing right now because it works well in public places, with lots of people 😀 So today we’re looking it… Read More Powershell : Find-UnsecureWifiConnection’s Nearby