mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Fixed: ServiceUser can't be changed on Server 2008
Added a space to fix sc.exe not changing user on Windows Server 2008 because it expects a space between 'password=' and '"{2}"'
This commit is contained in:
parent
b3953438c7
commit
0eccbd9ba2
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ function Set-IcingaAgentServiceUser()
|
||||||
$User = [string]::Format('.\{0}', $User);
|
$User = [string]::Format('.\{0}', $User);
|
||||||
}
|
}
|
||||||
|
|
||||||
$ArgString = 'config {0} obj= "{1}" password="{2}"';
|
$ArgString = 'config {0} obj= "{1}" password= "{2}"';
|
||||||
if($null -eq $Password) {
|
if($null -eq $Password) {
|
||||||
$ArgString = 'config {0} obj= "{1}"{2}';
|
$ArgString = 'config {0} obj= "{1}"{2}';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue