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 feature specifically, but it made me realize I needed a better way to export a…
Tag: export
Importing and Exporting Registry Items
A while ago I posted a function to export registry items to either a CSV or XML file. Recently I had a question on Twitter about importing, which I assumed meant from my exported file. The import is actually pretty easy as I’ll show you, although it did require a change to the original Export-Registry…
Export Registry
Over the last week or so I’ve posted some functions for testing whether a given registry item exists or not, or even validating its value. To round this out, today I have an advanced function that makes it easier to export parts of the registry on the local computer.
Export-Function
I love that you can do so much with PowerShell on the fly. For example, I don’t need to launch a script editor to create a PowerShell function. I can do it right from the command prompt. PS C:\> function tm {(get-date).ToLongTimeString()} PS C:\> tm 12:41:27 PM As long as my PowerShell session is open,…