PSObjectToRegistry
1.0.0
Add-PSObjectToRegistry accepts one or more PSObjects 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.
When multiple objects are piped in, each object is written to its own subkey. By
default, subkeys are named numerically start
their properties as registry values under a specified key path. The target path is
always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE.
When multiple objects are piped in, each object is written to its own subkey. By
default, subkeys are named numerically start
Add-PSObjectToRegistry accepts one or more PSObjects 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.
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.
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
their properties as registry values under a specified key path. The target path is
always rooted under HKLM:\SOFTWARE or HKCU:\SOFTWARE.
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.
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
- LICENSE
- PSObjectToRegistry.psd1
- PSObjectToRegistry.psm1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.0.1 | 5 | 3/12/2026 |
| 1.0.0 (current version) | 5 | 3/12/2026 |