After many years of writing scripts for the Windows PowerShell console, I’m now learning the next level of automation — writing GUI applications that run Windows PowerShell commands. PowerShell Studio forms provide a gentle and well-guided introduction to GUI applications, but it’s still taken me some time to break old habits. I constantly need to […]
Tag: PowerShell Studio 2014
PowerShell Studio Templates : Get a head start on your scripts
When you open a new script file (.ps1) in PowerShell Studio 2014, you don’t get a blank page, at least by default. Instead, the page begins with a comment block, like this one: <# .NOTES =========================================================================== Created with: SAPIEN Technologies, Inc., PowerShell Studio 2014 v4.1.74 Created on: 11/5/2014 4:28 PM Created by: juneb Organization: SAPIEN […]
Run Selection v. Run Selection in Console
PowerShell Studio is full of features and options. As a new user, I’m trying to learn as many as I can. There are four options in the Run menu, so, of course, I tried them all. But the result was unexpected. Run and Run Selection run your code and show the result in […]
Expand All Aliases: Ctrl+Shift+A
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 […]
Comment it out!
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 […]
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 […]
Enhanced Input: A grand compromise
Life is full of difficult decisions and system admins are faced with them all the time. One tool has three features you like, but another has one you can’t live without. Fortunately, hidden in PowerShell Studio 2014 is delightful feature that bridges the gap between the fully featured Editor Pane and the interactive response of […]
Customizing the Console
Even though I’ve been writing scripts for years, I find that I work in the Console Pane in PowerShell Studio 2014 almost as much as I work in the Editor Pane. I use the Console Pane to look up commands and syntax (Get-Command), test a parameter value, or work through the details of a pipeline […]
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 […]