Icinga PowerShell Framework problems

All of a sudden I start seeing these errors on some monitored windows servers. This only started to happen, and I haven’t found any single common reason (like patches, EDR update or similar). Has anyone else seen this or have some input?

warning/Process: Killing process group 8260 ('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NoLogo -ExecutionPolicy ByPass -C "try { Use-Icinga -Minimal; } catch { Write-Output 'The Icinga PowerShell Framework is either not installed on the system or not configured properly. Please check https://icinga.com/docs/windows for further details'; Write-Output 'Error:' $($_.Exception.Message)Components:`r`n$( Get-Module -ListAvailable 'icinga-powershell-*' )`r`n'Module-Path:'`r`n$($Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command 'Invoke-IcingaCheckPartitionSpace' " -Warning 90% -Critical 95% -Include @() -Exclude @() -CheckUsedSpace') after timeout of 180 seconds


For info: I’m using the framwork version 1.13.2 but has been that version for quite some time, and these errors didn’t occur right after upgrading.

I was forced to reinstall the agent and PS completly.
Uninstall the agent normally.
Run remove-module
Delete the modules från PS directory
Remove the service icingapowershell using sc delete
Reinstall the agent and modules

Now all works. I have no clue why it failed in the first place though.