在 SQL 服务器 syspolicy_purge_history 中作业第 3 步失败

In SQL Server syspolicy_purge_history job step 3 failed

SQL 服务器 syspolicy_purge_history 作业步骤 3 由于以下错误而失败。 运行 这第 3 步时,有人遇到过同样的问题吗?

错误日志:

Executed as user: NT Service\SQLSERVERAGENT. Unhandled Exception:System.IO.FileLoadException: Could not load file or assembly 'System.Management.Automation.dll' or one of its dependencies. Access is denied. at Microsoft.SqlServer.Management.PowerShell.SqlPowerShell.Main(String[] args). Process Exit Code 255. The step failed.

服务器出现问题。服务器管理器仪表板未打开并在 window 中显示 "Could not load file or assembly 'System.Management.Automation.dll' or one of its dependencies. Access is denied" 错误消息。

加载问题 System.Management.Automation.dll。