Hello,
we are trying to install the latest version of IfW on our systems. We have a wrapper script that sets the necessary parameters during installation and also registers the respective system in Director. In addition, we can choose between packages.icinga.com and a local repository as the source in the packages. Systems are Windows Server 2025.
The problem: The first attempt always fails.
[Error]: Unable to load the Icinga PowerShell Framework. Please check your PowerShell execution policies for possible problems. Error: System.Management.Automation.RuntimeException: Unable to configure system permission information
In %windir%\security\logs\scesrv.log:
----------------:<----------------
-—Benutzerrechte werden konfiguriert…
SeImpersonatePrivilege muss Administratoren zugewiesen werden. Die Einstellung wurde angepasst.
SeImpersonatePrivilege muss SERVICE zugewiesen werden. Die Einstellung wurde angepasst.
Konfigurieren von S-1-5-99-0.
Entfernen von SeServiceLogonRight.
Konfigurieren von S-1-5-19.
Konfigurieren von S-1-5-20.
Hinzufügen von SeServiceLogonRight.
Konfigurieren von S-1-5-99-216390572-1995538116-3857911515-2404958512-2623887229.
Konfigurieren von S-1-5-32-544.
Konfigurieren von S-1-5-32-551.
Konfigurieren von S-1-5-21-1757981266-1450960922-682003330-512.
Konfigurieren von S-1-1-0.
Konfigurieren von S-1-5-32-545.
Konfigurieren von S-1-5-6.
Konfigurieren von S-1-5-21-1757981266-1450960922-682003330-2184.
Konfigurieren von S-1-5-32-555.
Konfigurieren von S-1-5-80-0.
Konfigurieren von EINGESCHRÄNKTE DIENSTE\ALLE EINGESCHRÄNKTEN DIENSTE.
Fehler 1332: Zuordnungen von Kontennamen und Sicherheitskennungen wurden nicht durchgeführt.
EINGESCHRÄNKTE DIENSTE\ALLE EINGESCHRÄNKTEN DIENSTE wurde nicht gefunden.
Fehler 18: Es sind keine weiteren Dateien vorhanden.
Konfiguration der Benutzerrechte wurde mit einem oder mehreren Fehlern abgeschlossen.
----------------:<----------------
The problem also occurs when we explicitly set the ExecutionPolicy to Unrestricted with scope LocalMachine.
If the script is started a second time, the installation runs without errors. This sequence also occurs when we perform the actual installation without our wrapper and with manually set parameters:
[Net.ServicePointManager]::SecurityProtocol = ‘tls12, tls11’;
$ProgressPreference = ‘SilentlyContinue’;
Invoke-WebRequest -UseBasicParsing -Uri ‘https://packages.icinga.com/IcingaForWindows/IcingaForWindows.ps1’ -OutFile ‘C:\Users\Public\IcingaForWindows.ps1’;
& C:\Users\Public\IcingaForWindows.ps1 -ModuleDirectory 'C:\Program Files\WindowsPowerShell\Modules\'
-InstallCommand ‘{“IfW-AgentVersion”: {“Values”:[“2.15.1”]}, “IfW-ForceCertificateCreation”: {“Selection”: “1”}, “IfW-Hostname”: {“Selection”: “1”}, “IfW-Certificate”: {“Selection”: “2”}, “IfW-ParentZone”: {“Values”: [“master”]}, “IfW-Ticket”: {“Values”: [“xxxxxx”]}, “IfW-InstallApiChecks”: {“Selection”: “1”}, “IfW-Connection”: {“Selection”: “1”}, “IfW-ParentNodes”: {“Values”: [“xxxxxx”]}}’
It looks like something is happening in the wrong order with regard to permissions.
Regards
Berthold