Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| sysadmin:windows:desactiver_windows_defender [2023/07/05 19:48] – yoann | sysadmin:windows:desactiver_windows_defender [2025/06/01 11:38] (Version actuelle) – yoann | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{taq> | + | {{tag> |
| ====== Windows 10/11 : Désactiver Windows Defender ====== | ====== Windows 10/11 : Désactiver Windows Defender ====== | ||
| - | La cmdlet | + | < |
| + | Sur les version pro de Windows 10/11 la protection contre les falsifications (tamper protection) réactive systématiquement Windows Defender. | ||
| + | </ | ||
| + | |||
| + | ===== Vérifier l' | ||
| + | |||
| + | Plusieurs services peuvent être contrôles : | ||
| + | * Microsoft Defender Antivirus Service (WinDefend) ; | ||
| + | * Windows Security Service (SecurityHealthService) ; | ||
| + | * Security Center (wscsvc). | ||
| + | |||
| + | <code powershell> | ||
| + | Get-Service Windefend, SecurityHealthService, | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Depuis la GUI ==== | ||
| + | |||
| + | | ||
| + | | ||
| + | * Dans la section | ||
| + | * Désactiver la protection temps réel ; | ||
| + | |||
| + | < | ||
| + | La désactivation via l' | ||
| + | </ | ||
| + | |||
| + | ==== Depuis PowerShell ==== | ||
| + | |||
| + | Les commandes de gestion de Microsoft Defender sous PowerShell sont regroupées dans le module Dedenfer : | ||
| + | |||
| + | <code powershell> | ||
| + | Get-Command -Module Defender | ||
| + | </ | ||
| + | |||
| + | La cmdlet **Get-MpComputerStatus** | ||
| <code powershell> | <code powershell> | ||
| - | # vérifier l' | ||
| - | Get-Service -Name WinDefend | ||
| # Status détaillé des composants Windows Defender | # Status détaillé des composants Windows Defender | ||
| Get-MpComputerStatus | Select-Object ' | Get-MpComputerStatus | Select-Object ' | ||
| + | |||
| + | |||
| + | AMServiceEnabled | ||
| + | AntispywareEnabled | ||
| + | AntivirusEnabled | ||
| + | BehaviorMonitorEnabled | ||
| + | IoavProtectionEnabled | ||
| + | NISEnabled | ||
| + | OnAccessProtectionEnabled : True | ||
| + | RealTimeProtectionEnabled : True | ||
| </ | </ | ||
| - | Après désactivation via la GUI | + | * **AMServiceEnabled** décrit l' |
| + | * **NISEnabled** décrit l' | ||
| + | * **IOAV** Analyse des fichiers téléchargés et pièces jointes | ||
| + | |||
| + | |||
| + | <code powershell> | ||
| + | # Vérifier si la protection contre les falsifications est active | ||
| + | # (tamper protection) | ||
| + | Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, | ||
| + | </ | ||
| + | |||
| + | <code powershell> | ||
| + | # Stopper l' | ||
| + | Set-MpPreference -DisableRealtimeMonitoring $True | ||
| + | Set-MpPreference -MAPSReporting 0 | ||
| + | </ | ||
| + | |||
| + | Après désactivation | ||
| <code powershell> | <code powershell> | ||
| Get-MpComputerStatus | Select-Object ' | Get-MpComputerStatus | Select-Object ' | ||
| Ligne 29: | Ligne 91: | ||
| </ | </ | ||
| - | * **AMServiceEnabled** décrit | + | ==== Les Journaux ==== |
| - | * **NISEnabled** décrit l' | + | |
| + | Le journal de l' | ||
| + | |||
| + | | ||
| + | * Déployer | ||
| Ligne 59: | Ligne 125: | ||
| </ | </ | ||
| + | < | ||
| + | Le processus de protection logicielle (sppsvc) semble supprimer la valeur **DisableAntiSpyware** lorsqu' | ||
| + | </ | ||
| + | |||
| + | Créer la clé si elle n' | ||
| + | * **HKLM\SOFTWARE\Microsoft\Windows Defender** | ||
| + | * Modifier les droits d' | ||
| + | * Désactiver l' | ||
| + | * Modifier le propriétaire : définir le groupe administrateurs et cocher '' | ||
| + | * Modifier les droits d' | ||
| + | * Cocher '' | ||
| + | |||
| + | Ajouter les valeurs suivantes de type DWORD 32 bits ayant pour valeur hexadécimale 0x01 : | ||
| + | |||
| + | * DisableAntiVirus | ||
| + | * DisableAntiSpyware | ||
| + | * ServiceStartStates | ||
| ===== Stratégie de sécurité ===== | ===== Stratégie de sécurité ===== | ||
| + | |||
| + | < | ||
| + | Sous Windows 10 la modification de la stratégie de sécurité ne conduit pas à la création de la valeur DWORD 32 bits **DisableAntiSpyware** dans le registre. | ||
| + | </ | ||
| ===== Références ===== | ===== Références ===== | ||
| - | * https:// | + | * [[https:// |
| - | * https:// | + | * [[https:// |
| + | * [[https:// | ||
| + | * [[https:// | ||
| * https:// | * https:// | ||
| + | * [[https:// | ||
| + | * https:// | ||
| + | * https:// | ||