Admin Command Line (or run in a script)
netsh advfirewall firewall set rule group=”Network Discovery” new enable=Yes
Notes
Windows Settings
Start Button > Settings > Network & Internet > Ethernet > Advanced sharing settings > Turn on network discovery