PowerShell Object Tutorial

Windows PowershellCreating objects in PowerShell is… strange, to put it lightly–down right awful if you want to be realistic. But even if the syntax is terrible, objects are still nice to use. Here’s a quick primer on how to create and use an object in PowerShell.

Creating a New Object

First let’s create an object using New-Object.

PS > $myObj = New-Object Object

Continue reading

PowerShell for Programmers: Just the Basics

Windows PowershellI recently added PowerShell to my repertoire and noticed it has quite a few interesting quirks. The syntax is a bit odd as well, but overall it’s a pretty handy language to know and it definitely has a place in any developer’s toolkit.

Understanding the ins and outs of PowerShell did require quite a bit of Googling and practice, so I thought it might be nice to document some of what I found and put together a PowerShell for Programmers primer.

Continue reading