当前位置:   article > 正文

清除Windows安全中心保护历史记录_detectionhistory

detectionhistory

How To Clear Windows Defender Protection History

Delete Local Folder 
  1. \> msconfig
  2. ## select the boot tab
  3. ## under boot options, clear the safe boot checkbox.
  4. ## or
  5. \> bcdedit /set {current} safeboot minimal
  6. \> shutdown /r

进入安全模式删除文件夹:
C:\ProgramData\Microsoft\Windows Defender\Scans\History\Service\DetectionHistory
 
即可。

  1. ## reference command ...
  2. \> pushd "%ProgramData%\Microsoft\Windows Defender\Scans\History\Service"
  3. \> takeown /f DetectionHistory /r /d y
  4. \> icacls DetectionHistory /grant administrators:F /t
  5. \> rmdir /s /q DetectionHistory

*notes:

  • boot to saft mode from settings
  1. Press the <Win><I> on the keyboard to open Settings.
    If that does not work, click Start and then select Settings.
  2. Click Update & Security and on the left pane select Recovery.
  3. Under Advanced startup, click Restart now.
  4. After the computer restarts, on the Choose an option screen, select Troubleshoot > Advanced Options > Startup Settings > Restart.
  5. After the computer restarts, a list of options appears. Select 4 or F4 to start the computer in Safe Mode. If you must use the Internet, select 5 or F5 for Safe Mode with Networking.
  • boot to safe mode from the windows sign-in screen
  1. On the Windows sign-in screen, press and hold the Shift key while you select Power Circle with line Power icon > Restart.
  2. After your PC restarts to the Choose an option screen, select Troubleshoot Advanced options > Startup Settings Restart.
  3. After your PC restarts again, select the startup setting you want to use.

  • return to normal mode

    once you are done working in safe mode, you must run the below command before your restart you PC for it work normally again:

  1. \> bcdedit /deletevalue {current} safeboot
  2. \> shutdown /r
  • disable windows defender
\> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
  • open windows security
\> start WindowsDefender:

    click Virus & threat protection. under it click on Manage settingstoggle the button to Off and then to On again, for Real-Time protection and Cloud-delivered protection

Event Viewer
\> eventvwr.msc /s

Expand the following entries in sequence. Event Viewer (Local) > Applications and Services > Microsoft > Windows > Windows Defender > Operational
Now you can right-click on Operational in the left pane and choose Clear Log. Or click on Clear Log on the right pane under Actions.
 

Group Policy

Then scroll down to find Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > Microsoft Defender Antivirus > Scan
in the right pane, double click on Turn on removal of items from scan history folder. Finally, click Apply and then OK.
默认30天,如果将天数设置为零,则项目将永远保留,不会自动删除。

Power Shell

以管理员身份运行PowerShell,设置清除保护历史记录的时间为7天
Set-MpPreference -ScanPurgeItemsAfterDelay 7

  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3. Try the new cross-platform PowerShell https://aka.ms/pscore6
  4. PS C:\Users\Administrator> Set-MpPreference -ScanPurgeItemsAfterDelay 7
  5. PS C:\Users\Administrator>

https://www.thewindowsclub.com/clear-windows-defender-protection-history

https://www.makeuseof.com/windows-microsoft-defender-clear-history

https://thegeekpage.com/boot-in-to-safe-mode-using-the-command-prompt

https://www.dell.com/support/kbdoc/en-us/000124344/how-to-boot-to-safe-mode-in-windows-10

https://superuser.com/questions/1414910/understanding-how-to-use-icals-takeown-to-make-changes-and-reset-in-windows-10

https://answers.microsoft.com/zh-hans/windows/forum/all/windows%E5%AE%89%E5%85%A8%E4%B8%AD%E5%BF%83/f1225a4f-ec80-4117-9cc7-3596557dbb9b

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/692876
推荐阅读
相关标签
  

闽ICP备14008679号