With release of the v4.2.83 build of PowerShell Studio 2015, we introduced new features which we will cover in detail over a series of articles. This first feature added was in response to user feedback. Parameter Block Formatting Three new options were added to PowerShell Studio 2015 that allow you to control different aspects of […]
Category: Windows PowerShell
Advanced Help for Advanced Functions – #PSBlogWeek
Follow @juneb_get_help Writing help is often the last thing you do for an advanced function. But, instead of treating it as a disposable chore, write your help first — in advance — before you write your advanced function. Then, use the help as a design specification. The result is a better designed function and a […]
Writing XML Help for Advanced Functions
Follow @juneb_get_help The introduction of SAPIEN PowerShell HelpWriter has made writing XML help files as easy – actually easier – than writing comment-based help. XML help is more robust and less error-prone than comment-based help. It supports updatable help and help in multiple languages, and it lets you separate help files from script and modules […]
Supporting Multiple PowerShell Versions
As you may know both PowerShell Studio and PrimalScript support multiple versions of Windows PowerShell and allow you to switch between versions depending on what versions of PowerShell are installed. Supported Windows PowerShell Versions: V2, V3, V4 Note: V5 will be officially supported after its release. We do not offer support for preview versions. Side […]
What’s new in PrimalScript 2015?
Our 2015 versions have been out for a while and most of you already know about some of the new features. But we want to make sure you don’t miss anything, so here is a brief recap. PrimalScript 2015 now has a PowerShell dialog editor If you create graphical user interfaces (GUI) in PowerShell all […]
Hidden … sort of: The Hidden Keyword in PowerShell Classes
The Hidden keyword hides properties and methods (and other members, like events) in a PowerShell class. When a member is hidden, you can still view and change it, but the Get-Member cmdlet doesn’t display it without the Force parameter and the hidden members are not available to auto-completion features, such as PrimalSense and IntelliSense. You […]
Troubleshooting Comment-Based Help
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, […]
PowerShell Studio 2015 – What’s new?
The new version of PowerShell Studio is upon us. All major releases are included as a free upgrade for those with an active subscription. PowerShell Studio 2015 We worked hard on overhauling the parser and other internal systems so that we can implement your requested features and improve the overall editing experience in PowerShell […]
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 […]
New! Kindle Edition of Windows PowerShell 4.0 TFM
Windows PowerShell TFM, 4th Edition by Jason Helmick and Mike F. Robbins (SAPIEN Press 2014) is now available in both Kindle Edition and paperback from Amazon.com. This is a big win for eBook lovers, for our international friends, and for those of us who need a paperback by the laptop and a Kindle Edition for […]