Installation Issue on Windows Server 2025

I am trying to install Icinga for Windows on a Windows Server 2025 following the steps here.

I ran the Powershell block from a elevated PowerShell Prompt and got this:

[Notice]: PowerShell Execution-Policies are configured to run Scripts and/or Modules.
The following directories are available for installing PowerShell modules into:
[0]: C:\Users\art\Documents\PowerShell\Modules
[1]: C:\Program Files\PowerShell\Modules
[2]: c:\program files\powershell\7\Modules
[3]: C:\Program Files\WindowsPowerShell\Modules (Recommended)
[4]: C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
[5]: C:\Program Files\Intel\Wired Networking\
Where do you want to install the Icinga PowerShell Framework into? ([0-5]) (Defaults: "3"): 3
[Notice]: Downloading Icinga PowerShell Framework into "C:\Users\art\AppData\Local\Temp\3\icinga-powershell-framework-zip"
[Notice]: Installing Icinga PowerShell Framework into "C:\Program Files\WindowsPowerShell\Modules"
[Notice]: Installing new Icinga PowerShell Framework version
[Notice]: Unblocking Icinga PowerShell Framework files
[Notice]: Applying pending migrations required for Icinga for Windows v1.8.0

It then proceeded to set there on that step for over half an hour. I hit Control-C and tried to re-run that Powershell block and then got this:

[Notice]: PowerShell Execution-Policies are configured to run Scripts and/or Modules.
[Notice]: Icinga PowerShell Framework is already installed. Using Framework functions for kickstarter.
[Notice]: Loading Icinga PowerShell Framework.

It just sits there forever. I looked for an Icinga Servvice but I don’t see one. How do I fix this install?

So after some digging, I was able to determine that this is a PowerShell 7 problem. Attempting to run the installer from an elevated PowerShell 7.4.6 prompt just does not work. I tried two different Windows Server 2025 systems, and both exhibited the behavior above. The Script eventually just hangs and the Icinga service is never installed.

To fix this, I opened an elevated Windows PowerShell prompt. I ran the following:

Uninstall-IcingaForWindows

After that operation was done, I was able to lick off the install script from Windows PowerShell and it completed without issue.

The takeaway here is, DON’T TRY TO INSTALL FROM PowerShell 7.x