is it is possible to specify the username, which runs the windows service for icinga-for-windows. i’ve the problem, that i want to install ifw on multiple domain controllers and a domain controller does not have local users, so that the installation on a second domain controller overwrites the password in Active-Directory from the first installation.
basically there is a native way to provide a user, but for the password it is a little more complicated. The reason behind is that in general I don’t feel well by placing a password as plain-text on the shell.
To change the user on the install command, add this to your install JSON
For the password, it is a little more complicated. I would recommended using Read-Host for the password input. How ever, this will not work in automated workloads.
If course you have to place the Set-IcingaInternalPowerShellServicePassword before running your Install-Icinga command, but after the Framework is installed.