Skip to content

Instantly share code, notes, and snippets.

@mklement0
mklement0 / IniFileHelper.psm1
Last active February 24, 2025 18:01
PowerShell module for reading and writing INI files on Windows, via the Windows API
<#
Windows-only module for reading from / updating INI files, via the Windows API.
You can either:
* download this script module (IniFileHelper.psm1) and use Import-Module to import it into a session;
If you place it in a subdirectory named IniFileHelper in in one of the directories listed in $env:PSModulePath,
it will automatically be available in future sessions.
* for ad-hoc use, download the code and create a dynamic, transient module for the