Great news for all those folks who rely on Export-Csv and who have been wanting an Append parameter! The latest CTP of PowerShell 3.0 now provides the parameter.
It’s not perfect, but it’s close – if the data you are exporting does not match the current data, you will receive an error:
If you rerun the previous example, with the Force switch, the current directories list of files will be in the “Name” column of the csv file.
If you don’t use the Force, and you DO know what you are doing, this does come in very handy – you can gather data on a daily (or weekly) basis and append it to one file with ease
Let’s hope Microsoft keeps this in the RTM of PowerShell V3
To get the latest CTP of PowerShell V 3.0, head to the Microsoft Download Center
One note – Don’t forget to uninstall CTP 1 if you have it! I failed to do this, and had to spend quite a bit of time recovering from my inability to read the Instructions.