赞
踩
- \> 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:
After your PC restarts again, select the startup setting you want to use.
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
\> reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v "DisableAntiSpyware" /d 1 /t REG_DWORD /f
\> start WindowsDefender:
click Virus & threat protection. under it click on Manage settings. toggle the button to Off and then to On again, for Real-Time protection and Cloud-delivered protection.
\> 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.
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天,如果将天数设置为零,则项目将永远保留,不会自动删除。
以管理员身份运行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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。