Select-PropertyValue

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

Write PowerShell Scripts for YOU!

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

June ’09 PowerShell One-Liner

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

PowerShell Functions: Return vs Write

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

Updated PowerShell TreeForm

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

VBScript Includes

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

Good, Better, Best

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

Can I Get a Little Help Here?

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

RSS SAPIEN Info Center

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard