diff --git a/Wazuh/README.md b/Wazuh/README.md index 80bbbab..de28b7b 100644 --- a/Wazuh/README.md +++ b/Wazuh/README.md @@ -124,9 +124,7 @@ Le principe : activer le **Script Block Logging** de PowerShell (génère l'**Ev **Méthode registre** (fonctionne sur toutes les éditions, y compris Win11 Home). PowerShell **en administrateur** : ```powershell -$base = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging" -New-Item -Path $base -Force | Out-Null -Set-ItemProperty -Path $base -Name "EnableScriptBlockLogging" -Value 1 -Type DWord +$base = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\PowerShell\ScriptBlockLogging" ; New-Item -Path $base -Force | Out-Null ; Set-ItemProperty -Path $base -Name "EnableScriptBlockLogging" -Value 1 -Type DWord ``` **Méthode GPO** (Win11 Pro) : `gpedit.msc` → *Configuration ordinateur* → *Modèles d'administration* → *Composants Windows* → *Windows PowerShell* → **Activer la journalisation des blocs de script PowerShell** → **Activé**.