On our PowerShell community forums, we have recently received questions asking if it is possible to store PowerShell variables in external files, and if so, how is it done. It is indeed possible to store variables in external files for PowerShell to use. These external variables can be stored in a variety of file types. […]
Category: Beginners
PowerShell Write Cmdlets
PowerShell has multiple Cmdlets that display information, but the question that often arises is which one should be used? In this post we will take a look at the differences between some of the more common ways to display information in PowerShell and which one will fit best for a given situation. Before we […]
iPowerShell Now Available on Android
SAPIEN technologies, Inc. is proud to announce that we’ve officially released iPowerShell on the Play Store! In this blog post, we will outline the two biggest features available. SSH/PSWA Servers Just as in the iOS version, there is a console capable of managing your servers using SSH or PowerShell Web Access. We worked with /n Software again using […]
Friday Puzzle Solution: Why doesn’t Verbose work?
On Friday, February 17, 2017, I posted the following puzzle on Twitter and Facebook (and here!). It shows a PowerShell function with a Write-Verbose command and asks “Why won’t this verbose string print?” You might think of this as a beginner puzzle, but after years of using PowerShell, I still hit this issue occasionally, and […]
Friday Puzzle Solution: What does Return keyword return?
On Friday, February 3, we posted a Friday Puzzle that shows a PowerShell function and a PowerShell class method that contain the same command sequence, including a statement with the Return keyword. The puzzle asks: What does the function return? What does the class method return? And, of course, we want to understand why. To […]
Friday Puzzle: Why doesn’t Include include?
On Friday, January 20, 2017, I posted the following puzzle on Twitter and Facebook (and here!). It shows a Get-ChildItem command where the value of the Path parameter is $PSHome, the Windows PowerShell installation directory, and the value of the Include parameter is ‘*ps1xml.’ The command returns nothing — not a single file — even […]
Friday Puzzle: What does a Catch block catch?
On Friday, January 6, 2017, I posted the following puzzle on Twitter and Facebook (here, too!). It shows a Try block that encloses an expression with an intentional error and a Catch block that writes an error. But, when you run it, the error doesn’t appear as designed. The error is supposed to say ‘Cannot […]
Write a Multi-Form PowerShell GUI App
Tested on: PowerShell 2.0+, PowerShell Studio 2016 This step-by-step example shows you how to create a very simple multi-form PowerShell GUI app. The app consists of a parent form that gets data from a child form and displays it. When you finish, you’ll know how to use the basic multi-form features of PowerShell Studio. For […]
How Git branches affect files on disk
When I started using Git back in 2012, I wasn’t new to source control systems. I used a database-backed source control system back in the 80’s and, at Microsoft, I used Visual Source Safe (VSS) and Team Foundation Server (TFS). I was a whiz at checking files in and out, examining and comparing versions, and […]
Add custom tools to the menu
There are so many features in PowerShell Studio and PrimalScript that I think I can’t live without, like the Format Script button, file groups, and conditional breakpoints. But, there are few features I’d love to have that aren’t there. They’re easy enough to add, but they’re really personal to me. Fortunately, I can add them […]