When you hit F7 in PowerShell console it brings up a command history dialog box where you can choose and run history items like in the following image But this feature doesn’t work in Powershell ISE or any other script editor. Well to the rescue following is a quick function which uses Out-GridView cmdlet to mimic… Read More Powershell Get-History+
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
Changing a URL candidate to valid ASCII format is called URL Encoding and can be done like in the below image using System.Web.HttpUtility class in .Net framework. You can also perform its reverse which is call URL Decoding.… Read More Encode\Decode URL with Powershell
Have you ever googled a port number to figure out what service uses it? I think every system administrator must have done this. But what if there are a lot of port to search?
So I thought giving it try with PowerShell if we can use the shell to pro-grammatical get port information of lots of port numbers.… Read More Query Port Information using Powershell
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
This blog post is in continuation of my last blog post Capturing & Analyzing online users Trend on Reddit with Powershell . According to the advice from one of the best IT pros I know – Trevor Sullivan (Twitter handle @PCGeek) who suggested me to pump all the data points script captures from Reddit’s Powershell Community page to AWS Cloud Watch, I decided to give it a shot.
Just to give you an idea AWS CloudWatch is Amazon Monitoring service and it can do much more than just plotting graphs using the data points you send to the cloud. You can use Amazon CloudWatch to collect and track metrics, collect and monitor log files, set alarms, and automatically react to changes in your resources.… Read More Pumping Reddit user trend to AWS CloudWatch with Powershell