Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Cannot load hashtable from file.

$
0
0

Hi,

I have a ps1 to export the hashtable as a file.

Name                           Value
----                           -----
G                              Green    
R                              Red             
B                              Blue

However, powershell's ConvertFrom-StringData cannot read back from file.  it must read as format like:

G=Green

R=Red

B=Blue

How can I read the content from file which exported from hashtable?


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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