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

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.1.0 (current version) 415 3/16/2026
1.0.1 11 3/12/2026
1.0.0 6 3/12/2026