1. 程式人生 > 其它 >隱藏的計劃任務執行,導致賬戶被鎖的調查方法

隱藏的計劃任務執行,導致賬戶被鎖的調查方法

檢視失敗的計劃任務
Applications and Services Logs / Microsoft / Windows / TaskScheduler/Operational
104 Logon failure
311 Task Engine failed to start
101 Task Start Failed

檢視隱藏的已儲存使用者名稱和密碼:

From a command prompt run:psexec -i -s -d cmd.exe
From the new cmd window run:rundll32 keymgr.dll,KRShowKeyMgr

下載地址:
https://docs.microsoft.com/en-us/sysinternals/downloads/psexec

這種方式和直接檢視WindowsCredentialManager的區別:
此方法以SYSTEM為上下文。列表中會包括普通的CredentialManager中沒有的內容。

檢視是否有殘留任務檔案:
To troubleshoot the issue, we suggest deleting the task image. To do this: Go toC:\Windows\System32\Tasksand delete the task image in this folder.

檢視殘留的登錄檔項:
HKLM\Software\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree

找到相應任務後,記錄其ID,去此處再刪除相關項:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tasks

引用:
https://serverfault.com/questions/686393/event-4625-audit-failure-null-sid-failed-network-logons/727455#727455
https://answers.microsoft.com/en-us/windows/forum/all/cant-find-task-in-task-scheduler/f76d43fd-f73d-43a5-a1b1-d42489b839aa