-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xRegistry: Cannot create registry value containing ":" in the path #671
Comments
This issue only occurs if we specify the Common registry style for the root of the path like Sample DSC configuration that has issue.Configuration test
{
Import-DscResource -ModuleName xPSDesiredStateConfiguration
xRegistry test
{
Ensure = 'Present'
Key = 'HKEY_LOCAL_MACHINE\Software\dsc\mw1.jothgxmws.com:443'
ValueName = 'TestValue'
ValueData = '1'
ValueType = 'DWORD'
Force = $true
}
} Sample DSC configuration that has NOT issue.Configuration test
{
Import-DscResource -ModuleName xPSDesiredStateConfiguration
xRegistry test
{
Ensure = 'Present'
Key = 'HKLM:\Software\dsc\mw1.jothgxmws.com:443'
ValueName = 'TestValue'
ValueData = '1'
ValueType = 'DWORD'
Force = $true
}
} |
mkht
added a commit
to mkht/xPSDesiredStateConfiguration
that referenced
this issue
Jan 18, 2020
9 tasks
mkht
added a commit
to mkht/xPSDesiredStateConfiguration
that referenced
this issue
Jan 24, 2020
mkht
added a commit
to mkht/xPSDesiredStateConfiguration
that referenced
this issue
Feb 23, 2020
…n the path. (dsccommunity#672) * Add unit & intergration tests * Fix issue dsccommunity#671 * Update CHANGELOG.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Attempts to create a registry value with ":" (colons) in the path using the xRegistry resource will fail with an exception.
The DSC configuration that is used to reproduce the issue
Verbose logs showing the problem
Suggested solution to the issue
The
Get-PathRoot
function has a problem. It does not returns proper root drive when paths containing colons.xPSDesiredStateConfiguration/source/DSCResources/DSC_xRegistryResource/DSC_xRegistryResource.psm1
Lines 559 to 581 in efbee5b
The text was updated successfully, but these errors were encountered: