Blog

SAPIEN Ignite Conference Pass Award for Women in PowerShell

December 18th, 2014 by June Blender
SAPIEN Technologies, Inc., developer of PowerShell Studio and Primal Script, will award a full conference pass for Microsoft Ignite 2015 to a woman in the Windows PowerShell community. SAPIEN encourages other Ignite participants to match this award and support the attendance of technical women at IT and developer conferences. ------- We've all been to the technical conferences with thousands of men and just a sprinkling of women. The dearth of women in computer technology seems to hit IT professionals hardest when it comes to conference time. There are many women speakers, but just a few women in the audience. Women are particularly…   More »

Displaying Output in a GUI Application

December 15th, 2014 by June Blender
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 remind myself that things that "just work" in the console don't make any sense in a GUI. Writing output is one of them. Writing Output to the Console When you generate output in the Windows PowerShell console, the output appears as text strings in the…   More »

2012 License Holders, This One’s For You!

December 11th, 2014 by Lanae Dale
Are you in possession of a 2012 product license key?  There are now just shy of three weeks left to upgrade to our new Subscription Model and take advantage of the discounted upgrade pricing.  Once our 2015 versions are released, upgrade pricing will no longer apply and you will be subject to full MSRP pricing on our new versions. But wait!  Upgrade now and receive an additional 10% off the already discounted upgrade pricing.  Each license upgrade comes with a year of free maintenance, in terms of all major builds and product releases.  Yes, you read that right; when…   More »

Beyond custom objects: Create a .NET class

December 2nd, 2014 by June Blender
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 use the objects in Windows PowerShell. PS C:\> $k = $table | ConvertFrom-String -TemplateContent $template | Select-Object -Property Keyword, Reference PS C:\> $k | where Keyword -eq "Trap" Keyword Reference ------- --------- Trap about_Trap, about_Break, about_Try_Catch_Finally But, it's just a simple step from the generic…   More »

Get-LanguageKeywords: Using ConvertFrom-String on About Topics

December 1st, 2014 by June Blender
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 electric bill and phone bill to PowerShell objects so that I could track them, but I really wasn't using it for work. Until today. I wanted to find out whether the new enum keyword in the Windows PowerShell 5.0 preview had been added to the…   More »

You’re invited to our weekend long event!

November 26th, 2014 by Lanae Dale
This year we have decided to incorporate three of the biggest shopping days of the year, into an entire weekend long event here at SAPIEN Technologies! Beginning on Black Friday, stepping into Small Business Saturday, and running all the way through Cyber-Monday, shop with us for 25% off your entire purchase (some restrictions may apply). Yes, this includes new license purchases, upgrades, AND renewals! Use the discount code Turkey25 for your holiday savings.     If you have any questions, concerns or encounter any errors, please feel free to e-mail us at sales@sapien.com. We will be out of the office…   More »

PowerShell Studio Templates : Get a head start on your scripts

November 19th, 2014 by June Blender
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 Filename: =========================================================================== .DESCRIPTION A description of the file. #>   This text comes from a template that contains starter text for new script files. In this post, I’ll explain how templates for script files work. I’ll show you where we keep default templates and tell…   More »

Removing Objects from Arrays in PowerShell

November 18th, 2014 by June Blender
  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 the subject and I used the (very good) answer that the team gave me. But that answer was incomplete, and while there are many good posts on the topic, none really cover the whole scope of pitfalls. [Be sure to start with about_Arrays. I'll assume…   More »

Update-OneGet: Install OneGet on PS 3.0+

November 14th, 2014 by June Blender
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 of sources. For example, if you want to install MarkDownPad2, a very simple and highly regarded HTML mark-up (or down) editor, you run a command like this: Find-Package MarkDown2 | Install-Package Yes. It's just that easy. Really. And, if you need to uninstall it. Get-Package…   More »

BOOK BLOWOUT, CLEARANCE SALE!

November 7th, 2014 by Lanae Dale
                           Save big now! Originally priced at $59.99, get your copy of Microsoft Hyper-V or WSH and VBScript Core printed books for only $15.00 each, shipping included, while supplies last! Offer valid in the continental United States only. Microsoft Hyper-V A practical guide to implementing Hyper-V in your environment. Microsoft Hyper-V, focuses on giving you a practical guide to implementing Hyper-V in your environment; everything from installing your first Hyper-V server to building clustered environments for complex systems. This book includes instructions for managing Hyper-V using the built-in Hyper-V Manager or Systems Centre Virtual Machine Manager (VMM), as well as,…   More »