Hi, I need to change the time that virus notifications are retained. For a number of reasons I want the virus notifications to be saved (temporarily) for at most 1 day.
With PowerShell (as admin) I thought that this command would do it.
>Set-MpPreference -QuarantinePurgeItemsAfterDelay 1
but no, I get this error:
Set-MpPreference : Operation failed with the following error: 0x%1!x!
At line:1 char:2
+ Set-MpPreference -QuarantinePurgeItemsAfterDelay 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Set-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0xc0000142,Set-MpPreference
Can anyone help me with this change?
Version 23H2 (OS Build 22631.2792)
With PowerShell (as admin) I thought that this command would do it.
>Set-MpPreference -QuarantinePurgeItemsAfterDelay 1
but no, I get this error:
Set-MpPreference : Operation failed with the following error: 0x%1!x!
At line:1 char:2
+ Set-MpPreference -QuarantinePurgeItemsAfterDelay 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_MpPreference:root\Microsoft\...FT_MpPreference) [Set-MpPreference],
CimException
+ FullyQualifiedErrorId : HRESULT 0xc0000142,Set-MpPreference
Can anyone help me with this change?
Version 23H2 (OS Build 22631.2792)
My Computer
System One
-
- OS
- Windows 11 Pro
- Computer type
- PC/Desktop
- Manufacturer/Model
- Self assembled
- CPU
- i7-12700
- Memory
- 16GB
- Graphics Card(s)
- nVidia 3060Ti
- Monitor(s) Displays
- 2 X 34in
- Screen Resolution
- 4K
- Hard Drives
- SSD plus HDD
- PSU
- 850W