### Microsoft Defender Antivirus
## Turn Off Windows Defender Real-time Protection
# Privacy & seecurity > Windows Security > Virus & thread protection > Virus & thread protection settings > Manage settings > Real-time protection
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection", "DisableRealtimeMonitoring", 0x01)
## Turn Off Cloud-delivered Protection
Set-MpPreference -MAPSReporting Disabled
## Disable Cloud-delivered Protection for Microsoft Defender Antivirus
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet", "SpynetReporting", 0x00)
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" -Name "SubmitSamplesConsent" -Type DWord -Value 2
## Turn Off Controlled Folder Access
Set-MpPreference -EnableControlledFolderAccess Disabled
## Disable Controlled Folder Access
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Windows Defender Exploit Guard\Controlled Folder Access", "EnableControlledFolderAccess", 0x00)
# Virtualization-based security OFF
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\DeviceGuard" -Type DWord -Name "EnableVirtualizationBasedSecurity" -Value 0 -Force
##
Enable or Disable Microsoft Defender SmartScreen for Microsoft Edge in Windows 11 Tutorial
## Turn Off Microsoft Defender SmartScreen Check Apps and Files from Web ("Warn", "Off")
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" -Type String -Name "SmartScreenEnabled" -Value "Off" -Force
## Disable SmartScreen Check Apps and Files from Web
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\System" -Type DWord -Name "EnableSmartScreen" -Value 0 -Force
## Turn On or Off Tamper Protection 0 = Off; 5 = On
## [Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Features", "TamperProtection", 0x00)
## ??? Disable Microsoft Defender Antivirus
[Microsoft.Win32.Registry]::SetValue("HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender", "DisableAntiSpyware", 0x01)
# By hand Tamper protection 'Off"
