Created
October 6, 2023 02:28
-
-
Save MattMS/773d83e989ba64757f4044a339a7893b to your computer and use it in GitHub Desktop.
Parse INI content to Posh hashtable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ini -split "`n" | % -Begin {$HT = @{}} -End {$HT} -Process {$n, $v = $_ -split '='; $HT[$n] = $v} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment