Follow @juneb_get_help In a previous post, I talked about displaying output in a GUI application. But I really covered only the primary output of cmdlets. In this post, we’ll discuss some very basic strategies for detecting and displaying terminating and non-terminating errors in a GUI application. This is a critical topic. If you’re used to […]
Category: PowerShell Studio
Displaying Output in a GUI Application
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 […]
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 […]
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 […]
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 […]