How to export powershell’s hashtable into CSV file using Export-Csv?

Question:

How to export powershell’s hashtable into CSV file using Export-Csv ?

I want to get this into CSV file where each key-value pair is in new line. First column should allways be key and next columns should be values.

Like this:

Thank you very much.

Answer:

One way:

Source:

How to export powershell’s hashtable into CSV file using Export-Csv? by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply