PowerShell:Get-EventLog和Microsoft-Windows-GroupPolicy

时间:2014-08-13 09:18:52

标签: windows powershell logging group-policy

这个问题可能会转储,但如何查询名为“Microsoft-Windows-GroupPolicy / Operational”的“特殊”事件日志?

Get-EventLog -Source "GroupPolicy" -LogName "Microsoft-Windows-GroupPolicy/Operational"

失败,也在下面......

Get-EventLog -Source "GroupPolicy" -LogName "Microsoft-Windows-GroupPolicy"

1 个答案:

答案 0 :(得分:3)

对不起噪音。自己想出来,使用Get-WinEvent代替了诀窍......

Get-WinEvent -LogName "Microsoft-Windows-GroupPolicy/Operational"