Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell 7.4.6 install on Windows Server 2025 #792

Open
golaat opened this issue Mar 2, 2025 · 0 comments
Open

Powershell 7.4.6 install on Windows Server 2025 #792

golaat opened this issue Mar 2, 2025 · 0 comments

Comments

@golaat
Copy link

golaat commented Mar 2, 2025

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant