Follow @juneb_get_help A Windows PowerShell user group member recently came to me with a question about comment-based help in Windows PowerShell. It reminded me again that comment-based help is not as easy to use as you might think. Here are a few tips to help you avoid and fix obvious pitfalls. TIP: When testing help, […]
Tag: juneb
Parameter validation affects parameter variables
Follow @juneb_get_help In a Google+ discussion this week, Edi Prinz demonstrated an effect of the ValidationRange parameter attribute that surprised many of us. When you validate a parameter value, the validation rules are enforced on the parameter variable — and that enforcement persists on the variable for the entire function scope. For example, this function […]
Creating a GUI for CSV Data
Follow @juneb_get_help I often manage data in CSV files, typically data that originates in an Excel spreadsheet. The Import-Csv cmdlet, which creates custom objects from the contents of a CSV file, makes CSV data an optimal choice in Windows PowerShell. But, how do you manage CSV data in a Windows UI? PowerShell Studio offers several […]
SAPIEN Technologies MVPs for 2015 (Wave #2)
SAPIEN Technologies, Inc. is proud to announce its second wave of MVPs for 2015. SAPIEN Most Valuable Professional (MVP) award. It’s our way to recognize and show our appreciation for community members who promote our products and contribute to their improvement and success. Congratulations to the second wave of SAPIEN Technologies MVPs […]
Manage Errors in a GUI Application
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 […]
SAPIEN Technologies MVPs for 2015
SAPIEN Technologies, Inc. is proud to announce its first wave of MVPs for 2015. SAPIEN Most Valuable Professional (MVP) award. It’s our way to recognize and show our appreciation for community members who promote our products and contribute to their improvement and success. Congratulations to the first wave of SAPIEN Technologies MVPs […]
SAPIEN MVP Program
SAPIEN Technologies, Inc. is proud to announce the introduction of the SAPIEN Most Valuable Professional (MVP) award. It’s our way to recognize and show our appreciation for community members who promote our products and contribute to their improvement and success. How do I become a SAPIEN MVP? SAPIEN MVP candidates submit […]
Enumerated Types in Windows PowerShell 5.0
Follow @juneb_get_help [Update: The original post referred to “enums” as “enumerators” when, in fact, they are “enumerated types.” By contrast, enumerators allow you to process items one at a time. Many thanks to Windows PowerShell MVP Dave Wyatt (@msh_Dave) for the correction.] Enums have always been a part of Windows PowerShell, because they’re an important part […]
Find variables with class
Follow @juneb_get_help I’ve been playing with the Windows PowerShell 5.0 preview and especially with its new class feature. After I create my class, I often create several instances of the class and experiment with them in my session. For example, I created a Wine class and then created several instances of my wine class. I […]
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 […]