You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There may be a large set of applications on Windows that store their configuration in the registry. It may make sense to have the registry resource accept a file that maps registry locations to a resource definition.
This is hypothetical and the values property needs to be thought out on how to properly support this. Also, for the registry resource to synthesize a DSC resource, it would need to generate JSON schema or implement the validate subcommand and perform its own validation against the incoming JSON (this seems more feasible).
Each synthetic resource would need it's own resource manifest that uses the registry resource.
In this example, imagine a microsoft.powershell.microsoftupdate.dsc.json file in a location either the registry resource
is aware of or in the same location as registry.exe:
Summary of the new feature / enhancement
There may be a large set of applications on Windows that store their configuration in the registry. It may make sense to have the
registry
resource accept a file that maps registry locations to a resource definition.Proposed technical implementation details (optional)
For example, PS7 uses two registry values to control Microsoft Update:
HKLM\Software\Microsoft\PowerShellCore\UseMU = 1
HKLM\Software\Microsoft\PowerShellCore\InstalledVersions\39243d76-adaf-42b1-94fb-16ecf83237c8\Install = 1
The first enables updating via MU and the second installs if not installed (update doesn't do anything if not installed).
The
registry
resource could have parameters likeregistry -resourceFile ps7.json
which contains:This is hypothetical and the
values
property needs to be thought out on how to properly support this. Also, for theregistry
resource to synthesize a DSC resource, it would need to generate JSON schema or implement thevalidate
subcommand and perform its own validation against the incoming JSON (this seems more feasible).Each synthetic resource would need it's own resource manifest that uses the
registry
resource.In this example, imagine a
microsoft.powershell.microsoftupdate.dsc.json
file in a location either theregistry
resourceis aware of or in the same location as
registry.exe
:The text was updated successfully, but these errors were encountered: