Icinga For Windows - Error with Output of Windows Updates

This is the OUTPUT of “Invoke-IcingaCheckUpdates” from My ICINGA2 MASTER

Thecommand details is:

‘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 Introduction - Icinga for Windows for further details’'’; Write-Output ‘'‘Error:’'’ $($_.Exception.Message)Components:rn$( Get-Module -ListAvailable ‘'‘icinga-powershell-*’'’ )rn’'‘Module-Path:’''rn$($Env:PSModulePath); exit 3; }; Exit-IcingaExecutePlugin -Command ‘'‘Invoke-IcingaCheckUpdates’'’ ’ ‘-UpdateFilter’ ‘@()’

But If I run the “Invoke-IcingaCheckUpdates” from the AGENT host the output is this one:

Why this difference ?

you icinga powershell service / icinga2 is running as NetworkUser without this privilege

How can I change\modify this ?


TRy this - But have error:
Set-IcingaServiceUser -User ‘NT AUTHORITY\SYSTEM’ -SetPermission;
[Error]: Failed to update the service user: [SC] OpenService OPERAZIONI NON RIUSCITE 5:Accesso negato.
And this:
Set-IcingaServiceUser -User ‘NT AUTHORITY\SYSTEM’ -Service ‘icingapowershellservice’ -SetPermission;

But still have error on ServiceCheck

check the user in the windows services.msc and change it there. restart the service

I create a local User and change the user for ICINGA and Powershell Services.
Restarted the service and Now works!!: