Specifies the number of days for which items are stored in the scan log folder. After this time, Windows Defender deletes the items. If you specify a null value, Windows Defender will not remove items. If you do not specify
a value, Windows Defender will remove items from the default scan log folder, that is, 30 days.
You can specify a different delay period (in days) by running this command on the PowerShell administrator command line:
Set-MpPreference -ScanPurgeItemsAfterDelay 3
* 3 is the number of days after which the protection log and items in the log folder will be cleared.
122 people found this reply helpful
·
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.