PSObjectToRegistry
1.1.0
Add-PSObjectToRegistry accepts one or more PSObjects or HashTables from the pipeline
and serializes their properties as registry values under a specified key path. The
target path is always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE. Both PSObject
and HashTable input types are supported. HashTables follow the same subkey
conventions as PSObjects
and serializes their properties as registry values under a specified key path. The
target path is always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE. Both PSObject
and HashTable input types are supported. HashTables follow the same subkey
conventions as PSObjects
Add-PSObjectToRegistry accepts one or more PSObjects or HashTables from the pipeline
and serializes their properties as registry values under a specified key path. The
target path is always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE. Both PSObject
and HashTable input types are supported. HashTables follow the same subkey
conventions as PSObjects but do not support -UseFirstPropertyAsKey when multiple
HashTables are provided.
When multiple objects are piped in, each object is written to its own subkey. By
default, subkeys are named numerically starting at 0. Use -UseLeadingZeros to pad
numeric names to a consistent width, or -UseFirstPropertyAsKey to name each subkey
after the value of the object's first property. By default, unique key names are
ensured by appending numeric suffixes when using -UseFirstPropertyAsKey but the
-AllowOverwrite parameter may be used to reverse this behavior.
When only a single object is piped in and neither -UseFirstPropertyAsKey nor
-UseLeadingZeros is specified, properties are written directly to the target key
with no subkey created.
This function requires appropriate permissions to write to the target hive. Writing
to HKLM typically requires an elevated session.
Show more
and serializes their properties as registry values under a specified key path. The
target path is always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE. Both PSObject
and HashTable input types are supported. HashTables follow the same subkey
conventions as PSObjects but do not support -UseFirstPropertyAsKey when multiple
HashTables are provided.
When multiple objects are piped in, each object is written to its own subkey. By
default, subkeys are named numerically starting at 0. Use -UseLeadingZeros to pad
numeric names to a consistent width, or -UseFirstPropertyAsKey to name each subkey
after the value of the object's first property. By default, unique key names are
ensured by appending numeric suffixes when using -UseFirstPropertyAsKey but the
-AllowOverwrite parameter may be used to reverse this behavior.
When only a single object is piped in and neither -UseFirstPropertyAsKey nor
-UseLeadingZeros is specified, properties are written directly to the target key
with no subkey created.
This function requires appropriate permissions to write to the target hive. Writing
to HKLM typically requires an elevated session.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 Kiefer Easton. All rights reserved.
Package Details
Author(s)
- Kiefer Easton
Tags
PowerShell scripting automation registry PSObject pipeline
Functions
Dependencies
This module has no dependencies.
FileList
- PSObjectToRegistry.nuspec
- CHANGES.md
- LICENSE
- PSObjectToRegistry.psd1
- PSObjectToRegistry.psm1
- PSObjectToRegistry.tests.ps1
- README.md
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.1.0 (current version) | 415 | 3/16/2026 |
| 1.0.1 | 11 | 3/12/2026 |
| 1.0.0 | 6 | 3/12/2026 |