小编ben*_*kah的帖子

Get-EventLog 中缺少事件描述,但存在于 Get-WinEvent 和事件查看器中

当我使用 Get-EventLog 在 powershell 中查询它们时,缺少事件日志事件的许多事件描述,但是当我使用 Get-WinEvent 在 powershell 中查询它们或在常规事件查看器 eventvwr.msc 中查看它们时,它们会出现

这是 Get-EventLog 的输出:

PS U:\> Get-EventLog -LogName System -Source Microsoft-Windows-Kernel-Power

   Index Time          EntryType   Source                 InstanceID Message
   ----- ----          ---------   ------                 ---------- -------
   11985 Apr 02 13:42  Information Microsoft-Windows...          172 The description for Event ID '172' in Source 'Microsoft-Windo...
   11968 Apr 02 13:41  Information Microsoft-Windows...          109 The description for Event ID '109' in Source 'Microsoft-Windo...
   11732 Apr 02 09:41  Information Microsoft-Windows...          172 The description for Event ID '172' in Source …
Run Code Online (Sandbox Code Playgroud)

powershell windows-event-log

5
推荐指数
1
解决办法
1547
查看次数

标签 统计

powershell ×1

windows-event-log ×1