Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
"Network_access_Remotely_accessible_registry_paths_and_subpaths" Add multiple paths #83
I am relatively new to DSC but have found ALOT of my answers here in the DOCS and on the web.
But, one issue has me stumped.
I can add one path, and only 1 path, no matter how I try. I have tried setting using the SecurityPolicyDsc resource (many different ways) and also straight up using the Registry Resource, Which fails miserable because an export of the data is hex, but when using DSC to add it back in, it just adds the hex data to the MultiString key...
I am at a loss.
If anyone has figured this out, I would greatly appreciate your input!
If it is changed to an array, and the resource builds a comma separated string, then both the following would work.
That means that existing configurations would still work. Although, since it should return an array, it would be a breaking change for users expecting an comma separated string when running Get-DscConfiguration.
After further investigation, the comma separated string works to set the multiple paths, however get-DSCConfiguration only returns the FIRST path. This causes failure when used in Azure DSC. This occurs in both Network_access_Remotely_accessible_registry_paths and Network_access_Remotely_accessible_registry_paths_and_subpaths