我有一个奇怪的错误,似乎是权限相关的,虽然我已经做了大量的search,没有任何的build议工作。
我有一个PowerShell脚本,直接运行在Windows2012 DC。 它试图从EventViewer日志中获取信息,特别是“安全性”,但是突然之间,服务器现在(截至前几天)说“Get-EventLog:请求访问不被允许”。
这也是一个非常简单的命令:
Get-Eventlog -Logname Security -Newest 1
但结果如下:
Get-EventLog : Requested registry access is not allowed. At line:1 char:1 + Get-EventLog -Newest 1 + ~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-EventLog], SecurityException + FullyQualifiedErrorId : System.Security.SecurityException,Microsoft.PowerShell.Commands.GetEventLogCommand
我曾经尝试过:
我有一种感觉可能会腐败? 我不知道该在哪里看。 作为pipe理员,我应该能够从PowerShell中取出事件日志。
这感觉就像一个解决方法,它太复杂了一个简单明显的安全监控请求,但它的工作原理W2012:
是的其他人在我面前发现了这个http://powerkb.se/?p=614