{"id":15192241,"url":"https://github.com/powershell/gpregistrypolicyparser","last_synced_at":"2025-10-02T07:30:27.241Z","repository":{"id":48118722,"uuid":"60303486","full_name":"PowerShell/GPRegistryPolicyParser","owner":"PowerShell","description":null,"archived":true,"fork":false,"pushed_at":"2023-08-18T17:37:20.000Z","size":35,"stargazers_count":149,"open_issues_count":1,"forks_count":36,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-01-21T12:35:58.219Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-02T23:14:44.000Z","updated_at":"2024-11-20T00:30:06.000Z","dependencies_parsed_at":"2024-09-18T18:04:55.350Z","dependency_job_id":"cf1f9688-7bf0-4a75-a3e9-9d0c4a6b7417","html_url":"https://github.com/PowerShell/GPRegistryPolicyParser","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.625,"last_synced_commit":"c8dfdfc9a25f2e076128f5221f0b3c7b45f1dab0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PowerShell/GPRegistryPolicyParser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FGPRegistryPolicyParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FGPRegistryPolicyParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FGPRegistryPolicyParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FGPRegistryPolicyParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShell","download_url":"https://codeload.github.com/PowerShell/GPRegistryPolicyParser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2FGPRegistryPolicyParser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974402,"owners_count":25908396,"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","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-09-27T21:20:21.239Z","updated_at":"2025-10-02T07:30:26.956Z","avatar_url":"https://github.com/PowerShell.png","language":"PowerShell","readme":"# Registry Policy Parser Cmdlets\n\n**Future updates to this project will be implemented in the [GPRegistryModule](https://github.com/PowerShell/GPRegistryPolicy).**\nVersion 0.2 will continue to be available in this GitHub project\nand in the [PowerShellGallery](https://www.powershellgallery.com/packages/GPRegistryPolicyParser/0.2).\nThis will ensure any projects taking a dependency on GPRegistryParser 0.2\nwill not be broken.\nAny updates to GPRegistryParser will be documented in the GPRegistryModule\nrelease notes,\nbut none are expected.\n\nThese cmdlets will allow you to work with .POL files,\nwhich contain the registry keys enacted by Group Policy.\nThe primary intent of these cmdlets is to\nenable enforcing security policy settings on Nano Server,\nbut this method will also work on Windows Server 2016.\nThese cmdlets are used internally by *GPRegistryModule*.\n\n---\n\n## Parse-PolFile\nReads a .pol file containing group policy registry entries\nand returns an array of objects each containing a registry setting.\n\n### Syntax\n```\nParse-PolFile [-Path \u003cstring\u003e]  [\u003cCommonParameters\u003e]\n```\n\n| Parameter Name | Description                                                                            | \n| ---            | ---                                                                                    |\n| Path           | Specifies the path to the .pol file to be imported.                                    |\n\n### Example\n```\nC:\\PS\u003e $RegistrySettings = Parse-PolFile -Path \"C:\\Registry.pol\"\n```\n\n---\n\n## Read-RegistryPolicies\nReads given registry entries and returns an array of registry settings.\n\n### Syntax\n```\nRead-RegistryPolicies [-Division \u003cstring\u003e] [-Entries \u003cstring[]\u003e]  [\u003cCommonParameters\u003e]\n```\n\n| Parameter Name | Description                                                                                          | \n| ---            | ---                                                                                                  |\n| Division       | Specifies the target registry division (LocalMachine, CurrentUser or Users)                          |\n| Entries        | Specifies the list of registry keys to be exported. The default value is set to 'Software\\Policies'. |\n\n### Example\n```\nC:\\PS\u003e $RegistrySettings = Read-RegistryPolicies -Entries @('Software\\Policies\\Microsoft\\Windows', 'Software\\Policies\\Microsoft\\WindowsFirewall')\n\nC:\\PS\u003e $RegistrySettings = Read-RegistryPolicies -Divistion 'CurrentUser'\n\nC:\\PS\u003e $RegistrySettings = Read-RegistryPolicies -Divistion 'LocalMachine' -Entries @('Software\\Policies\\Microsoft\\Windows', 'Software\\Policies\\Microsoft\\WindowsFirewall')\n```\n\n---\n\n## Create-RegistrySettingsEntry\nCreates a .pol file entry byte array from a GPRegistryPolicy instance.\nThis entry can be written in a .pol file later.\n\n### Syntax\n```\n$RegistrySettings = Create-RegistrySettingsEntry [-RegistryPolicy \u003cGPRegistryPolicy[]\u003e\n```\n\n| Parameter Name | Description                                                                                          | \n| ---            | ---                                                                                                  |\n| RegistryPolicy | An instance of internal type 'GPRegistryPolicy'                                                      |\n\n### Example\n```\nC:\\PS\u003e $Entry = Create-RegistrySettingsEntry -RegistryPolicy $GPRegistryPolicyInstance\n```\n\n---\n\n## Append-RegistryPolicies\nAppends an array of registry policy entries to a file.\nThe file must already have a valid header.\n\n### Syntax\n```\nAppend-RegistryPolicies [-RegistryPolicies \u003cGPRegistryPolicy[]\u003e] [-Path \u003cstring\u003e]\n```\n\n| Parameter Name   | Description                                                                                          | \n| ---              | ---                                                                                                  |\n| RegistryPolicies | An array of instance of internal type 'GPRegistryPolicy'                                             |\n| Path             | Specifies the path to the .pol file to be imported.                                                  |\n\n### Example\n```\nC:\\PS\u003e Append-RegistryPolicies -RegistryPolicies $RegistryPoliciesInput -Path \"C:\\Registry.pol\"\n```\n\n---\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fgpregistrypolicyparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershell%2Fgpregistrypolicyparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Fgpregistrypolicyparser/lists"}