Fix win_nssm credentials quoting (#26226) (#26228)

Quote password to avoid Powershell special characters being interpreted.
pull/26333/head
Wil Tan 8 years ago committed by Jordan Borean
parent cd3a795e65
commit 483346d94b

@ -428,7 +428,7 @@ Function Nssm-Update-Credentials
} }
If ($results -ne $fullUser) { If ($results -ne $fullUser) {
$cmd = "set ""$name"" ObjectName $fullUser $password" $cmd = "set ""$name"" ObjectName $fullUser '$password'"
$results = Nssm-Invoke $cmd $results = Nssm-Invoke $cmd
if ($LastExitCode -ne 0) if ($LastExitCode -ne 0)

Loading…
Cancel
Save