Tag 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

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

Convert Text to Object Updated

I’ve had a few comments and emails lately about my post and script on converting text to objects. I decided the function needed a little more lovin’ so today I have an updated version, complete with comment based help. Function … Continue reading

Posted in CommandLine, PowerShell, PowerShell v2.0, Scripting | Tagged , , , | 3 Comments