What if you want the Protection History to clear automatically after a specific number of days? You can also use a PowerShell command to do that. Let's see how to do this:
Type PowerShell in the search bar. Right-click on Windows PowerShell under Best match and select Run as administrator. Or choose Run as administrator on the right search pane.
Click Yes on the UAC prompt that appears.
The Administrator: PowerShell window will open up. Type or copy and paste the following command and then hit enter:
Set-MpPreference -ScanPurgeItemsAfterDelay 7
The number 7 at the end of the command is the number of days after which the protection history logs will be cleared. Just change that number to specify when you want the protection history to be cleared. And it will be cleared automatically.
Please SUBSCRIBE to our channel for more tech videos.
THUMBS UP AND SHARE THE VIDEO WITH YOUR FRIENDS.
Support US:
===============================================
Like Share Follow Us:
Subscribe: [ Ссылка ]
google+ : [ Ссылка ]
Facebook : [ Ссылка ]
Twitter : [ Ссылка ]
Microsoft Defender, PowerShell, Windows 10, Windows 11, Windows 12, Clear Protection History, Security Tips, Malware Protection, System Security, PowerShell Scripting
Ещё видео!