“Drop and give me 20 pipelines!”
In case you missed it, I’ll be doing our Windows PowerShell Special Forces training in Columbus, OH at the end of next month. In addition to the normal 3 day class, I’ll also be…
Read More
Because PowerShell is all about the objects, I often point out to beginners to use the Select-Object cmdlet to see all the properties of an object and their values.
PS C:\> get-process powershell | select *
Using Get-Member is helpful…
Read More
I’m often training administrators to use Windows PowerShell or offering guidance in a number of forums. As you might imagine I see a lot of code samples. Of course I help with the immediate challenge, but often I see opportunities…
Read More
In case you don’t get the SAPIEN Newsletter, here’s my PowerShell one-liner for the month.
The Get-Command cmdlet can return information not only about cmdlets but other applications and scripts that PowerShell “knows” about. This month I have a PowerShell…
Read More
The other day I was involved in a short Twitter debate about the relative merits of using Return vs Write-Object (or its alias Write) in PowerShell functions. Here’s my take.
I treat Return as a legacy keyword. You may have…
Read More
Not too long ago I wrote a blog post about a Windows Form PowerShell script to display a folder tree. I got some feedback about an error when running the script. The problem was that I was casting a variable…
Read More
I’ve been using VBScript for a very long time. One drawback it has always had as a scripting language is an INCLUDE statement. In other languages you can use something like INCLUDE scriptfile at the beginning of the script. This…
Read More
I’m very happy to see more and more people getting their hands dirty with Windows PowerShell. A common challenge I see across different support forums is getting information from one part of a script to another. Very often the user…
Read More
Are you ready Ohio? We’re bringing our intense, one-of-a-kind Special Forces PowerShell training to Columbus, Ohio July 27-29, 2009. We’re looking for up to 15 recruits who want to learn PowerShell from the ground up and aren’t afraid to get…
Read More
One of my favorite features in PowerShell v2.0 is the ability to add help scripts and functions. The help system with cmdlets is terrific. Type help and the name of a cmdlet and you get syntax, parameters, a description and…
Read More