Update Wazuh/README.md
This commit is contained in:
parent
3c47830094
commit
01beeebc72
1 changed files with 1 additions and 3 deletions
|
|
@ -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é**.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue