Skip to content

Commit 2143c60

Browse files
NeverUsedIDLordHepipud
authored andcommitted
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}"'
1 parent 1fa2e7a commit 2143c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/icingaagent/setters/Set-IcingaAgentServiceUser.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function Set-IcingaAgentServiceUser()
1616
$User = [string]::Format('.\{0}', $User);
1717
}
1818

19-
$ArgString = 'config {0} obj= "{1}" password="{2}"';
19+
$ArgString = 'config {0} obj= "{1}" password= "{2}"';
2020
if($null -eq $Password) {
2121
$ArgString = 'config {0} obj= "{1}"{2}';
2222
}

0 commit comments

Comments
 (0)