PSObjectToRegistry

1.0.1

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
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

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name PSObjectToRegistry

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name PSObjectToRegistry

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Kiefer Easton. All rights reserved.

Package Details

Author(s)

  • Kiefer Easton

Tags

PowerShell scripting automation registry PSObject pipeline

Functions

Add-PSObjectToRegistry

Dependencies

This module has no dependencies.

FileList

Version History

Version Downloads Last updated
1.0.1 (current version) 5 3/12/2026
1.0.0 5 3/12/2026