Logins may be showing incorrect profile information. Please email psgadmin at microsoft.com for support.
Skip To Content
PowerShell Gallery
Toggle navigation
Packages
Publish
Documentation
Sign in
Search PowerShell packages:
PsIni
1.2.0
Examples/comment-ini.ps1
# reconstitute a Hashtable from INI file and read a value
$content
=
Get-IniContent
.\settings.ini
|
Add-IniComment
-Sections
'category2'
-Keys
'key4'
$content
[
"category2"
]
[
"Comment1"
]