In order to write less code or to write better one-liners in Powershell, I often find one of these techniques useful, and let me know if you feel the same. Using -OutVariable parameter Variable squeezing Its a shame many of us ( including myself 😉 ) were not aware of this for quite long. Using Tee-Object Cmdlet… Read More 3 ways to Store & Display results in/from a Powershell variable at the same time
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+
I often see people wondering that some commands/applications launch from Windows Run (Windows Key+R) but when I try them in PowerShell console it throws an error, I know this gets frustrating at times. For example, when I try to run commands like Excel or WinWord my PowerShell console throws errors, but When I launch Notepad it just works… Read More Command discovery in Powerhell with $Env:Path
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 : Hello guys, Today’s blog post is about a quick Function to Highlight a word or a group of words in a content and displaying it on the Powershell console in a visually pleasing way. It can be used for Tracing instances of words from a log file, highlighting them and grouping same words… Read More Highlighting words in a Text content or Files in Powershell console
INTRODUCTION : This is a PowerShell script to summarize long text document(s) depending upon your chosen word limit, it utilizes an algorithm which looks for parameters like Important words and Common content to score each sentence in order to generate a summary of the highest scored sentences in sequence of there occurrence in the content. HOW… Read More Get-Summary : Algorithm in Powershell to summarize Text, Document(s) within a word limit.
Well, it’s Saturday night and I was watching some of the old Powershell tutorials, which I had downloaded from Microsoft Virtual Academy. THE PROBLEM : But problem with these downloaded tutorials is that – They have a Default download name, and one can barely understand the Content inside each vedio. see in the below picture. SOLUTION : Media players like,… Read More PowerShell : Get MP3/MP4 File’s MetaData and How to use it to make your Life easy