為什麼 Windows Defender 顯然只返回退出代碼“0”或“2”,但從不返回 1?

為什麼 Windows Defender 顯然只返回退出代碼“0”或“2”,但從不返回 1?

當我運行該命令時"C:\Program Files\Windows Defender\MpCmdRun.exe",它會輸出該命令的資訊。有一部分這樣說:

 Return code is
 0    if no malware is found or malware is successfully remediated and no additional user action is required
 2    if malware is found and not remediated or additional user action is required to complete remediation or there is error in scanning.  Please check >History for more information.

那麼它可以有回傳碼 0 或 2,但不能有 1?他們為什麼(顯然)跳過 1?這是因為傳統上 1 應該代表“實際錯誤”,而他們只使用 0 來表示“未發現惡意軟體”,因為這是幾十年來所有作業系統的二進位檔案的“預期行為”?

這是有道理的,但你認為他們至少會列出1是否有時可以退回?

相關內容