mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-21 07:10:15 -05:00
Merge pull request #47 from NeverUsedID/master
Fixed: ServiceUser can't be changed on Server 2008
This commit is contained in:
commit
a1a89730e3
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