在cmd中查詢事件檢視器

在cmd中查詢事件檢視器

各種來源,例如這個建議使用eventquery.vbs系統上的 cmd 從 cmd 查詢事件日誌。顯然我的 Windows 10 原生安裝缺少該檔案:

Microsoft Windows [Version 10.0.19042.1052]
(c) Microsoft Corporation. All rights reserved.

C:\Users\Me>cd \Windows\System32

C:\Windows\System32>cscript eventquery.vbs
Microsoft (R) Windows Script Host Version 5.812
Copyright (C) Microsoft Corporation. All rights reserved.

Input Error: Can not find script file "C:\Windows\System32\eventquery.vbs".

它似乎也不在系統的其他任何地方:

C:\>dir /a-d /b /s eventquery.vbs
File Not Found

如何從cmd查詢系統事件日誌? Power Shell 不是一個選項。具體來說,我正在嘗試查詢登入失敗

答案1

Eventquery.vbs 包含在 Windows Server 2003 中,但現在已已棄用

您連結到的文章提到了 Wevtutil 工具。我自己也不熟悉,但是文件是這裡

相關內容