Merge pull request #47 from NeverUsedID/master

Fixed: ServiceUser can't be changed on Server 2008
This commit is contained in:
Lord Hepipud 2020-03-04 18:57:03 +01:00 committed by GitHub
commit a1a89730e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ function Set-IcingaAgentServiceUser()
$User = [string]::Format('.\{0}', $User);
}
$ArgString = 'config {0} obj= "{1}" password="{2}"';
$ArgString = 'config {0} obj= "{1}" password= "{2}"';
if($null -eq $Password) {
$ArgString = 'config {0} obj= "{1}"{2}';
}