{"id":16567288,"url":"https://github.com/lipkau/psini","last_synced_at":"2025-04-09T11:09:25.343Z","repository":{"id":8351466,"uuid":"9912519","full_name":"lipkau/PSIni","owner":"lipkau","description":"Work with INI files in PowerShell using hashtables","archived":false,"fork":false,"pushed_at":"2025-04-04T17:35:24.000Z","size":260,"stargazers_count":153,"open_issues_count":19,"forks_count":52,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-05T10:35:50.124Z","etag":null,"topics":["ini","powershell","powershell-module"],"latest_commit_sha":null,"homepage":"http://lipkau.github.io/PsIni","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lipkau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["lipkau"]}},"created_at":"2013-05-07T13:31:54.000Z","updated_at":"2025-04-04T17:35:27.000Z","dependencies_parsed_at":"2024-05-27T23:17:57.063Z","dependency_job_id":"ba3e668d-56d3-4520-b015-774090b85fcc","html_url":"https://github.com/lipkau/PSIni","commit_stats":{"total_commits":120,"total_committers":15,"mean_commits":8.0,"dds":0.4833333333333333,"last_synced_commit":"81f0f1c9d9124d7d08d4f93c7650fd89ff080db8"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipkau%2FPSIni","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipkau%2FPSIni/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipkau%2FPSIni/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lipkau%2FPSIni/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lipkau","download_url":"https://codeload.github.com/lipkau/PSIni/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248027406,"owners_count":21035594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ini","powershell","powershell-module"],"created_at":"2024-10-11T21:06:12.393Z","updated_at":"2025-04-09T11:09:25.314Z","avatar_url":"https://github.com/lipkau.png","language":"PowerShell","funding_links":["https://github.com/sponsors/lipkau"],"categories":[],"sub_categories":[],"readme":"# [PSIni](http://lipkau.github.io/PSIni/)\n\n[![GitHub release](https://img.shields.io/github/release/lipkau/PSIni.svg?style=for-the-badge)](https://github.com/lipkau/PSIni/releases/latest)\n![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/lipkau/PSIni/build_and_test.yml?branch=master\u0026style=for-the-badge)\n[![PowerShell Gallery](https://img.shields.io/powershellgallery/dt/PSIni.svg?style=for-the-badge)](https://www.powershellgallery.com/packages/PSIni)\n![License](https://img.shields.io/github/license/lipkau/PSIni.svg?style=for-the-badge)\n\n## Table of Contents\n\n- [PSIni](#psini)\n  - [Table of Contents](#table-of-contents)\n  - [Description](#description)\n    - [Origin](#origin)\n  - [Installation](#installation)\n  - [Examples](#examples)\n    - [Create INI file from hashtable](#create-ini-file-from-hashtable)\n    - [Read the content of an INI file](#read-the-content-of-an-ini-file)\n  - [Contributors](#contributors)\n\n## Description\n\nWork with INI files in PowerShell using hashtables.\n\n### Origin\n\nThis code was originally a blog post for [Hey Scripting Guy](http://blogs.technet.com/b/heyscriptingguy).\n\u003e [Use PowerShell to Work with Any INI File](http://blogs.technet.com/b/heyscriptingguy/archive/2011/08/20/use-powershell-to-work-with-any-ini-file.aspx)\n\nOver time this project got a lot of enhancements and major face-lifts.\n\n## Installation\n\nPSIni is published to the [Powershell Gallery](https://www.powershellgallery.com/packages/PSIni)\nand can be installed as follows:\n\n```powershell\nInstall-Module PSIni \u003c# -Scope User #\u003e\n```\n\n---\n\nWhen using the source (this repository), you can easily get the necessary setup by running\n\n```powershell\n. ./tools/setup.ps1\n```\n\n_Additional information can be found in [CONTRIBUTING](CONTRIBUTING.md)._\n\n## Examples\n\n### Create INI file from hashtable\n\nCreate a hashtable and save it to `./settings.ini`:\n\n```powershell\n$Category1 = @{\"Key1\"=\"Value1\";\"Key2\"=\"Value2\"}\n$Category2 = @{\"Key1\"=\"Value1\";\"Key2\"=\"Value2\"}\n$NewINIContent = @{\"Category1\"=$Category1;\"Category2\"=$Category2}\n\nImport-Module PSIni\nOut-IniFile -InputObject $NewINIContent -FilePath \".\\settings.ini\"\n```\n\nResults:\n\n\u003e ```Ini\n\u003e [Category1]\n\u003e Key1=Value1\n\u003e Key2=Value2\n\u003e\n\u003e [Category2]\n\u003e Key1=Value1\n\u003e Key2=Value2\n\u003e ```\n\n### Read the content of an INI file\n\nReturns the key \"Key2\" of the section \"Category2\" from the `./settings.ini` file:\n\n```powershell\n$FileContent = Get-IniContent \"C:\\settings.ini\"\n$FileContent[\"Category2\"][\"Key2\"]\n```\n\n## Contributors\n\nThis project benefited immensely from the contribution of powershell enthusiasts.\nThank you ❤️\n\nThe Contributors: \u003chttps://github.com/lipkau/PSIni/graphs/contributors\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipkau%2Fpsini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flipkau%2Fpsini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flipkau%2Fpsini/lists"}