(PowerShell) Disabling Antivirus by Unprotect

Created the Friday 24 February 2023. Updated 4 weeks 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