how to enable windows firewall log | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to enable windows firewall log

hi sorry if my english bad i try to enable windows firewall log with python Address in windows== Control Panel\All Control Panel Items\Windows Firewall > Properties > public profile > logging and change Customize can you help me ?

18th Jul 2019, 11:25 AM
Amin
Amin - avatar
1 Answer
+ 1
Method 1: Windows Firewall GUI Open the Advanced Firewall Management Snap-in (WF.msc) Select the Action | Properties from the main menu On the Domain Profile tab, click Customize under the Logging section. Increase the file maximum size. Turn on logging for dropped packets Turn on logging for successful connections Method 2 – PowerShell Open a PowerShell window as Administrator and execute: Set-NetFirewallProfile -name domain -LogMaxSizeKilobytes 10240 -LogAllowed true -LogBlocked true By default your firewall will start logging to %systemroot%\system32\LogFiles\Firewall\pfirewall.log. You may like to change this to a central logging server.
23rd May 2021, 7:48 PM
GitHub Memory
GitHub Memory - avatar