‘c:\netsh firewall set logging droppedpackets = enable’
Although the log file doesn’t include the name of the program that is trying to make an outbound connection, the log file can then be found at: %systemroot%\system32\LogFiles\Firewall\pfirewall.log
via Enabling Windows firewall “dropped packets” log – Microsoft Answers.