Blog

Expand All Aliases: Ctrl+Shift+A

October 22nd, 2014 by June Blender
Windows PowerShell aliases are very handy. They typically have fewer characters than the commands and parameters that they represent, so they’re quicker to type and great for tweeting. However, it has long been an established best practice that aliases should not be used in blogs, in help, in examples, or in any shared scripts and commands. They create an extra layer of confusion for beginners and they’re an obstacle for anyone who needs to maintain the script. Still, we use them. I know that, despite my best efforts, I type “dir” and “where” and “gcm” and “ipmo” and “sls”  and,…   More »

Introducing the 4th Edition of Windows PowerShell TFM

October 21st, 2014 by Lanae Dale
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 of expertise can turn to. Whether you are in the beginning stages, or a seasoned veteran, we wanted to make sure you would be offered everything that you need. It is a learning guide, a lab guide, and a PowerShell reference all bundled up in…   More »

A Better ToString() Method for Hash Tables

October 21st, 2014 by June Blender
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 .NET framework that often frustrates me. It’s easy to create a hash table in Windows PowerShell: @{Name = "Fred"; ID = "3"}   And, beginning in Windows PowerShell 3.0, it’s easy to get a hash table string from a file and convert it to a…   More »

PowerShell Studio: Form and Script Recovery

October 20th, 2014 by David Corrales
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 still had to rebuild all his GUI forms from scratch. He was at least fortunate enough to be able to copy and paste the script portions of his project without having to completely rewrite it all. Please don’t find yourself in the same situation. For…   More »

WMI Explorer 2014 Service build 2.0.47

October 17th, 2014 by Alex Riedel
Our WMI Explorer 2014 gets a minor update with build 2.0.47. The new Server dialog lets you edit settings after the fact, for example when the password changes. You may notice the new “Root” field in the settings dialog, which is now also present in the initial dialog when connecting to a new computer. If you are only interested in a particular  namespace on a server or, even more important, if you only have permissions to a specific namespace and have no access to ‘root’ then this is what you need. All namespaces specifications have to start with ‘\root’, so…   More »

Delete Desktop Icons: A Windows PowerShell Tip

October 16th, 2014 by June Blender
I’m a rather geeky type person with a passion for clean desktops. My physical desktop is always pretty clean and I like my computer desktops to be clean, too. I don’t like anything on my desktop, including icons, especially on Windows 8.1, Server 2012 R2, and later, with their Start screen and taskbar. (I make an exception for the Recycle Bin, which really isn’t an icon.) But habits die hard and some people like icons, so they’re still popular. Automating the removal of icons from Windows 7 and earlier versions of Windows is particularly difficult. Most programs add their desktop…   More »

Comment it out!

October 15th, 2014 by June Blender
Today, I was experimenting with hash tables that had keys with multiple values. (More about that later!) But, in the course of my experimentation, I tried one technique and then another and then another. I didn’t want to delete any of my trial code, but I also didn’t want it to run. I just wanted to comment it out. I could have typed a comment symbol (#) on each line or typed the “<#” and “#>” to enclose each code block in a comment block, but PowerShell Studio 2014 makes commenting even easier.   To comment out each line individually…   More »

PowerShell Studio 2014: Refactoring and Other Updates

October 14th, 2014 by David Corrales
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 renaming function parameters and variables. - Refactoring now takes Set-Variable and Clear-Variable cmdlets into account. Improved Reference Highlighting To match the rename refactoring, our Reference Highlighting also takes into account the different ways variables and parameters are references: You can trigger Reference Highlighting by double…   More »

PrimalScript 2014 Service build 7.0.49

October 14th, 2014 by Alex Riedel
We do not always blog about service builds. But when we do, it is important. Code responsibly. PrimalScript 2014 has some new features in the MSI builder you want to check out. First of all you can now control the specific minimum version of PowerShell required. If an older version is present, a message box will inform the user and the install is aborted. You see PowerShell V5 there in preparation for its release, but please note that V5 is not released and not supported. You should not ever use pre-release software in a production environment. The second new feature…   More »

In possession of a product 2011 or older? Now’s Your Chance to Upgrade!

October 13th, 2014 by Lanae Dale
Calling all customers with product versions 2011 or older! This one’s for you. The path to upgrade your license has dwindled with the release of our 2014 products, and we know that purchasing a new license at full cost is hard to fathom when you still have a product that works. Our products have changed significantly for the better and our newer versions have SO much more to offer! Whether you want to cross-upgrade to a new product or simply upgrade your current version NOW IS THE TIME! So here it is: Take your pick of any product across…   More »