Update windows/security/operating-system-security/network-security/windows-firewall/configure-the-windows-firewall-log.md

Co-authored-by: Paolo Matarazzo <74918781+paolomatarazzo@users.noreply.github.com>
This commit is contained in:
msarcletti
2023-10-09 15:35:32 +02:00
committed by GitHub
parent ad72d997c3
commit 84b9178eaf

View File

@ -66,7 +66,7 @@ BUILTIN\Administrators FullControl Allow False ObjectI
NT SERVICE\mpssvc FullControl Allow False ObjectInherit NT SERVICE\mpssvc FullControl Allow False ObjectInherit
``` ```
If not, add FullControl permissions for mpssvc to the folder, subfolders and files. Make sure to use the correct path. If not, add FullControl permissions for mpssvc to the folder, subfolders and files. Make sure to use the correct path.
``` ```PowerShell
$LogPath = Join-Path -path $env:windir -ChildPath "System32\LogFiles\Firewall" $LogPath = Join-Path -path $env:windir -ChildPath "System32\LogFiles\Firewall"
$ACL = get-acl -Path $LogPath $ACL = get-acl -Path $LogPath
$ACL.SetAccessRuleProtection($true, $false) $ACL.SetAccessRuleProtection($true, $false)