About Me

I am certified Microsoft professional, a Microsoft MVP and an IT veteran with almost 20 years of experience, much of it spent as an IT consultant specializing in Windows server technologies. I work today as an independent author, trainer and consultant. I've co-authored or authored several books, courseware, and training videos on administrative scripting and automation. My latest book is Managing Active Directory with Windows PowerShel: TFM 2nd Ed.(SAPIEN Press 2011).
-
Please consider a donation if I've been of any help or assistance. Thank you.
Blog Sponsors
coming soon....Sponsored Links
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 CSV, export, Function, hashtable, import, PowerShell, Scripting
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 console, eventsubscriber, module, PowerShell, Register-ObjectEvent, Scripting
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 Get-Content, PowerShell, regex, Regular Expressions, Scripting, Select-Object
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 Import-CSV, objects, PowerShell, Scripting, Sort, Where-Object
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 Convert, PowerShell, Scripting, Split
3 Comments



