Hello everyone.
I have SCOM 2016. On the servers for PowerShell scripts, the Execution Policy is set to All Signed.
As I see it, SCOM sometimes creates temporary PowerShell scripts for checks itself, but they are not executed because they do not have a digital signature.
How do I configure SCOM to be able to run scripts while saving the Execution Policy to All Signed?
Below is the error log:
Event Description: Error Message = File C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 28441\113067\Microsoft.Windows.Server.TopCPUUsage.ps1 cannot be loaded. The file C:\Program Files\Microsoft Monitoring Agent\Agent\Health Service State\Monitoring Host Temporary Files 28441\113067\Microsoft.Windows.Server.TopCPUUsage.ps1 is not digitally signed. You cannot run this script on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170.