我有一个奇怪的错误,似乎它的权限相关,虽然我做了相当多的搜索,没有任何建议是有效的。
我有一个powershell脚本,直接在Windows2012 DC上运行。它试图从EventViewer日志中获取信息,特别是“安全性”,但是服务器现在突然(几天前)说,“get : Requested是不允许的”。
这也是一个非常简单的命令:
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我所尝试的是:
我觉得有什么东西可能是腐败的?我不知道该从哪看这一点。我应该能够作为管理员从powershell中提取事件日志。
发布于 2017-01-27 20:06:10
这就像是一个解决方案,对于一个简单而明显的安全监视请求来说,它太复杂了,但是它可以在w2012上工作:
是的,其他人在我之前就发现了这个,http://powerkb.se/?p=614
https://serverfault.com/questions/765472
复制相似问题