netsh advfirewall set allprofiles state on netsh advfirewall set allprofiles logging filename C:\pfirewall.log netsh advfirewall set allprofiles logging maxfilesize 8192 netsh advfirewall set allprofiles logging droppedconnections enable netsh advfirewall set allprofiles logging allowedconnections disable