Intune: Windows Firewall Domain - Configure Log File Path
π 2025-10-30
β’
β±οΈ 2 minuten lezen
β’
π’ Should-Have
πΌ Management Samenvatting
Configure Windows Firewall Domain log file path - default: %SystemRoot%\System32\LogFiles\Firewall\pfirewall.log (CIS standard location).
Aanbeveling
IMPLEMENT (standard path)
Risico zonder
Low
Risk Score
2/10
Implementatie
2u (tech: 1u)
Van toepassing op:
β Windows 10 β Windows 11
Log file path = standard location: Default path: %SystemRoot%\System32\LogFiles\Firewall\pfirewall.log, Benefits: Standard location (consistent across devices), Protected folder (requires admin to modify - tampering prevention), Log rotation: Automatic (when max size reached). Custom path: Sometimes used (dedicated log partition, centralized logging), maar default = sufficient for most organizations. SIEM: Path irrelevant (logs forwarded to Log Analytics via agent - reads from default path).
PowerShell Modules Vereist
Primary API: Microsoft Graph API Connection:Connect-MgGraph Required Modules: Microsoft.Graph.DeviceManagement
Implementatie
Configure log path: Policy: Log file path: %SystemRoot%\System32\LogFiles\Firewall\pfirewall.log (default), Effect: Firewall logs written to standard location, Access: Admin rights required (read firewall logs), SIEM: Log Analytics agent monitors path β forwards to cloud.
CIS Windows Benchmark L1 (standard path), BIO 12.04.
Monitoring
Gebruik PowerShell-script enable-domain-network-firewall-log-file-path-is-set-to-systemroot-system32-logfiles-firewall-domainfw-log.ps1 (functie Invoke-Monitoring) β Controleren.
Remediatie
Gebruik PowerShell-script enable-domain-network-firewall-log-file-path-is-set-to-systemroot-system32-logfiles-firewall-domainfw-log.ps1 (functie Invoke-Remediation) β Herstellen.
Compliance & Frameworks
CIS M365: Control Windows - Firewall log path (L1) -
BIO: 12.04.01 -
Automation
Gebruik het onderstaande PowerShell script om deze security control te monitoren en te implementeren. Het script bevat functies voor zowel monitoring (-Monitoring) als remediation (-Remediation).