运行任何 Powershell 脚本时出现 AuthorizationManager 错误(类也无效)

运行任何 Powershell 脚本时出现 AuthorizationManager 错误(类也无效)

今天,我们的一台 Win Server 2008R2 崩溃了,然后重新启动后,我无法在其上运行任何 Powershell 脚本,我收到错误“AuthorizationManager 检查失败”。当我运行 cmdlet 时Get-ExecutionPolicy,我收到另一个错误:

Get-ExecutionPolicy : Invalid class
No linha:1 caractere:1
+ Get-ExecutionPolicy
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-ExecutionPolicy], ManagementException
    + FullyQualifiedErrorId : System.Management.ManagementException,Microsoft.PowerShell.Commands.GetExecutionPolicyCommand

我检查了服务,一切似乎都正常且正在运行。尝试再次重启服务器,问题仍然存在。我猜是服务器崩溃时某些东西损坏了。有人见过这种情况吗?

相关内容