mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Quote password to avoid Powershell special characters being interpreted.
This commit is contained in:
parent
cd3a795e65
commit
483346d94b
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ Function Nssm-Update-Credentials
|
|||
}
|
||||
|
||||
If ($results -ne $fullUser) {
|
||||
$cmd = "set ""$name"" ObjectName $fullUser $password"
|
||||
$cmd = "set ""$name"" ObjectName $fullUser '$password'"
|
||||
$results = Nssm-Invoke $cmd
|
||||
|
||||
if ($LastExitCode -ne 0)
|
||||
|
|
Loading…
Reference in a new issue