简体   繁体   中英

PowerShell: Get-EventLog and Microsoft-Windows-GroupPolicy

This question maybe dump, but how can I query the 'special' event log called 'Microsoft-Windows-GroupPolicy/Operational'?

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

fails and below as well...

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

Sorry for the noise. Figured it out myself, using Get-WinEvent instead did the trick...

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM