Quantcast
Channel: MSDN Blogs
Viewing all articles
Browse latest Browse all 29128

PowerTip: Use PowerShell to Create Hash Table

$
0
0
Summary : Use a Windows PowerShell cmdlet to create a hash table. How can I use Windows PowerShell to create a hash table if do not remember the special syntax? Use the ConvertFrom-StringData cmdlet, and put each key-value pair on its own line. (You can perform this on a single line by using backtick character plus n ( `n ) for a new line): PS C:\> convertfrom-stringdata "a=1`nb=2`nc=3" Name Value ---- ----- c 3 a 1 b 2...(read more)

Viewing all articles
Browse latest Browse all 29128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>