Skip to content

Instantly share code, notes, and snippets.

View cernoel's full-sized avatar
🍉
One in a mellon!

Markus Gombocz cernoel

🍉
One in a mellon!
View GitHub Profile
@cernoel
cernoel / Save-KeyValue-ToFile.ps1
Last active June 22, 2017 06:01
Store and Load a KeyValue-Object to File - EasyMode
#Save File
##################
$MyDict = @{}
$MyDict.Add($SomeKey1, $SomeValue1)
$MyDict.Add("KEY2", "Value2")
$MyDict.Add("KEY3", "Value3")
try {
$MyDict | Export-Clixml $FilePathToDict