I take a lot of free online coding classes, mainly from Coursera and Udacity, and I’ve picked up a lot of programming tricks in other languages that are easy translated to Windows PowerShell. In a Java class on Udacity, I learned a cool way to find duplicates in any collection. It uses the fact that […]
Tag: powershell
Saving Passwords for Add-AzureAccount
One of the great features of the recent versions of Azure PowerShell is a non-interactive option for the Add-AzureAccount cmdlet. Unfortunately, the instructions tell you to save your Azure password in plain text, but there are much more secure alternatives. I explain one in this post. ——————- As users of Azure PowerShell know well, there […]
Introducing the 4th Edition of Windows PowerShell TFM
We are EXTREMELY pleased to announce the arrival of the 4th Edition of Windows PowerShell TFM; the latest, most up-to-date information available for the PowerShell version 4.0! Jason Helmick and Mike Robbins have taken the baton from Don Jones and Jeff Hicks, working vigorously to deliver useful, practical information in a resource that all levels […]
A Better ToString() Method for Hash Tables
I didn’t make it to the PowerShell Summit 2014 in Europe this year, but I’ve been getting much of the benefit by watching the Summit presentations on YouTube. After watching Windows PowerShell MVP Bartek Bielawski’s excellent presentation, in which he reviews PSCustomObjects and dynamic type data, I was inspired to fix a shortcoming in the […]
PowerShell Studio: Form and Script Recovery
Once in a while our support team gets a request to recover a script from a packaged executable because the original was lost. In fact this just happened recently when a user contacted us to recover his lost form project from his packaged script. We were able to recover the script, but unfortunately the user […]
PowerShell Studio 2014: Refactoring and Other Updates
In the last PowerShell Studio article, we spoke about the updates to the Function Builder in the v4.1.72 service build. Now we will discuss the other updates in the v4.1.72 build. Improved Rename Refactoring – We greatly improved the Refactoring speed when renaming variables and parameters. – Refactoring now takes splatting into account when […]
PowerShell Studio 2014: More Function Builder Updates
Yes, we updated the Function Builder yet again! We just released a new build of PowerShell Studio 2014 (v4.1.72). We wanted to highlight some changes and additions: Function Validation The Function Builder will now validate your function names by checking if it already exists in your script, thus preventing duplicate functions. Create Functions […]
The PassThru Parameter: Gimme Output
I love to explain things in clear, simple terms. So, a few weeks ago, I tweeted a request for a Windows PowerShell concept that could use more explanation. Andy Fair (@ravensportal) from Oklahoma City asked for a clear explanation of the PassThru parameter. PassThru is frequently used and frequently ignored, so I’m taking him up […]
Adding Parameter Sets to a Function
Like many of you, I really live at the command line, because automation is more efficient than single actions. But, as the command line becomes more complex, we need tools to restore our efficiency. The complex syntax of parameter sets in functions is one of those cases. In this post, I learn to use the […]
PowerShell Studio 2014: Editing Functions
We improved the Function Builder yet again! Man, when are you guys going to stop this? Never. With the 4.1.71 build of PowerShell Studio 2014, you now have the option to edit existing functions within the Function Builder! Ok cool, how do I edit my existing functions? Simple, you can edit existing functions using the […]