#Active le firewall sur tous les profils netsh advfirewall set allprofiles state on #Configure l'emplacement du fichier de log et sa taille maximale netsh advfirewall set allprofiles logging filename C:\pfirewall.log netsh advfirewall set allprofiles logging maxfilesize 8192 #Tout logger, y compris le traffic autorisé netsh advfirewall set allprofiles logging droppedconnections enable netsh advfirewall set allprofiles logging allowedconnections enable