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 […]
Tag: 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 […]
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 […]
Beyond custom objects: Create a .NET class
In yesterday’s blog post, I used the Select-String cmdlet to capture the table of keywords and references from the about_language_keywords help topic and then used the new ConvertFrom-String cmdlet in the Windows PowerShell 5.0 preview to convert each row of the table into a custom object (PSCustomObject). The custom object worked quite well. I could search, sort, format, and […]
Get-LanguageKeywords: Using ConvertFrom-String on About Topics
There have been some great blog posts about the new ConvertFrom-String cmdlet in the Windows PowerShell 5.0 preview. My favorite learning tool is an excellent talk by Windows PowerShell MVP Tobias Weltner about the full range of text parsing options available in Windows PowerShell 3.0 – 5.0. While learning, I had some fun converting my […]
Removing Objects from Arrays in PowerShell
A member of the PowerShell group on Facebook asked how to delete an object from an array. It’s a simple question, but the answer isn’t very simple at all. It’s one of those beginner questions that has an advanced answer. When I first answered this question in about_Arrays, I didn’t really know much about […]
Update-OneGet: Install OneGet on PS 3.0+
One of the coolest new features in the Windows PowerShell 5.0 preview is the OneGet module. Windows PowerShell program manager, Dan Harman, describes OneGet as a “package manager manager,” but for most of us, it represents a simple, repeatable, and reliable way to install, update, and uninstall a variety of available programs from a variety […]
The Fourth Edition of Windows PowerShell: TFM Now Available on Amazon
As of November 5th, 2014, SAPIEN’s newest edition of Windows PowerShell: TFM is available for purchase on Amazon.com. Whether you are located in the United States or Internationally, the ability to purchase the book is now here! The 4th Edition of Windows PowerShell: TFM contains 22 chapters in the learning guide, as well as […]