I am attempting to push out a registry change via powershell, but I am getting the error:
The string is missing the terminator: ".
+CategoryInfo : ParseError: (:) , ParentContainsErrorRecordException
+FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
The short line in the .bat file is:
powershell.exe "& Set-ItemProperty HKLM:\SOFTWARE\"abc def"\test\XXX -Name Test -value 50"
I have used this exact line many times to make registry changes and it always works. The only difference is the "white space" between the name ("abc def"). Without the quotation marks ("abc def") it errors out at "def".