[Bug] Failed to set a registry key with a path that contains spaces, slashes, and ends with a backslash #1068
Labels
Status: Needs Triage
Needs to be labelled and assigned for review
Type: Issue / Bug
Something isn't working as expected
Prerequisites
PSAppDeployToolkit version
3.10.0+
Describe the bug
When I try to create a registry key with a path containing spaces, slashes, and ending with a backslash, like
"HKEY_LOCAL_MACHINE\SOFTWARE\name with space and /slash and end with backslash\"
, theSet-RegistryKey
function creates the key as"HKEY_LOCAL_MACHINE\SOFTWARE\name with space and /slash and end with backslash" /f /reg:64
.On the second run, if the key already exists, the execution gets stuck. If a value needs to be set in that key, the function returns an error:
I encountered this behavior while parsing a .REG file, where the key is recorded as follows:
It’s not a major bug, but it still needs to be reported.
Steps to reproduce
There are no specific steps; just execute the following commands:
Environment data
The text was updated successfully, but these errors were encountered: