icinga-powershell-framework icon indicating copy to clipboard operation
icinga-powershell-framework copied to clipboard

Powershell 7.4.6 install on Windows Server 2025

Open golaat opened this issue 9 months ago • 0 comments

Install Icinga for Windows on a Windows Server 2025 via elevated PowerShell 7.4.6 following the steps here

Output from process:

[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

At which point, the script just hangs. Looking around, there is no Icinga service installed.

Hitting Control-C and attempting to re-run the script outputs this and it just hangs.

[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.

To work around the PowerShell 7 install issue, I opened a Windows PowerShell elevated pro mpt and did a Uninstall-IcingaForWindows

I then followed the same exact install instructions and process under Windows PowerShell and everything worked just fine.

Is PowerShell 7.x not supported I so, it would be great if the documentation clearly stated this!

Also, after installation it was not clear to me that I have to do a:

Icinga2 ca list
Icinca2 ca sign <thumbprint>

golaat avatar Mar 02 '25 16:03 golaat