The PSIniFile PowerShell module provides a convenient PowerShell cmdlet interface for reading from and writing to text-based .ini files.
The module adds the following cmdlets:
| Cmdlet | Description |
|---|---|
Get-IniFile |
Gets the content of a .ini file as a list of objects. |
Get-IniKey |
Gets the keys named in a section of a .ini file. |
Get-IniSection |
Gets the sections from a .ini file. |
Get-IniValue |
Gets a value from a .ini file. |
Remove-IniKey |
Removes a key and its value fron a .ini file. |
Remove-IniSection |
Removes an entire section from a .ini file. |
Set-IniValue |
Sets a value in a .ini file. |
Windows 8.1/Windows Server 2012 R2 or later.