Tag Archives: hashtable

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

Convert Text to Object

Today I have another tool in my new battle regarding turning command line tools into PowerShell tools. The bottom line is we want to have objects written to the pipeline. At the PowerShell Deep Dive in Frankfurt there was a … Continue reading

Posted in CommandLine, Conferences, PowerShell | Tagged , , , , , , | 9 Comments

Friday Fun Convert Object to Hash Table

I’ve been working on a few PowerShell projects recently and one requirement I had was to turn an object into a hash table. I thought this was something that was already handled in PowerShell but I couldn’t find a cmdlet … Continue reading

Posted in Friday Fun, Miscellaneous, PowerShell | Tagged , , , , | 3 Comments

Friday Fun What a CHAR!

Last week I posted a PowerShell snippet on Twitter. My original post piped an array of integers as [CHAR] type using an OFS. Don’t worry about that. As many people reminded me, it is much easier to use the -Join … Continue reading

Posted in Friday Fun, PowerShell v2.0 | Tagged , , , , | 3 Comments

Out-Clip

I’ve started working on the 2nd edition of Managing Active Directory with Windows PowerShell: TFM. As with almost all of my writing projects it will be full of PowerShell code examples. In the past I’ve always relied on a manual … Continue reading

Posted in PowerShell v2.0, SAPIEN Press, Scripting | Tagged , , , , , , | 1 Comment