
(PowerShell) Disabling Antivirus by Unprotect
Created the Friday 24 February 2023. Updated 7 months, 1 week ago.
Description:
This command sets the DisableRealtimeMonitoring
parameter in the Windows Defender preferences to true
, effectively disabling the real-time monitoring feature of Windows Defender.
Code
Set-MpPreference -DisableRealtimeMonitoring $true