Category Archives: Scripting

Export and Import Hash Tables

I use hash tables quite a bit and with the impending arrival of PowerShell 3.0 I expect even more so. PowerShell v3 allows you to define a hash table of default parameter values. I’m not going to to cover that … Continue reading

Posted in PowerShell, PowerShell v2.0, Scripting | Tagged , , , , , , | 13 Comments

Maximizing the PowerShell Console Title Bar

A few days ago Boe Prox posted some very nifty PowerShell modules for using the title bar as a ticker for RSS feeds like the weather. I thought this was an awesome idea and an easy way to take advantage … Continue reading

Posted in PowerShell v2.0, Scripting, WMI | Tagged , , , , , | 2 Comments

Friday Fun Get Content Words

Recently I was tracking down a bug in script for a client. The problem turned out to be a simple typo. I could have easily avoided that by using Set-StrictMode, which I do now, but that’s not what this is … Continue reading

Posted in Friday Fun, PowerShell v2.0, Scripting | Tagged , , , , , | Leave a comment

PowerShell in a Nutshell

This past weekend I did an online presentation for a friend of mine who teaches for ITT in Omaha, Nebraska. He wanted me to do a brief talk about what PowerShell is and show how to use it, especially for … Continue reading

Posted in PowerShell v2.0, Scripting, Training, Windows Server, WMI | Tagged , , | 1 Comment

Using Types with Imported CSV Data in PowerShell

The Import-CSV cmdlet in PowerShell is incredibly useful. You can take any CSV file and pump objects to the pipeline. The cmdlet uses the CSV header as properties for the custom object. PS S:\> import-csv .\testdata.csv Date    : 1/18/2012 … Continue reading

Posted in PowerShell v2.0, Scripting | Tagged , , , , , | 2 Comments