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

How To Clear Windows Defender Protection History

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

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

## reference command ...
\> pushd "%ProgramData%\Microsoft\Windows Defender\Scans\History\Service"
\> takeown /f DetectionHistory /r /d y
\> icacls DetectionHistory /grant administrators:F /t
\> 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:

\> bcdedit /deletevalue {current} safeboot
\> 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

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Administrator> Set-MpPreference -ScanPurgeItemsAfterDelay 7
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

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值