In Windows Server 2012+ or Windows 10, have you tried to repeatedly turn ON the “Network Discovery” option only to have it turned off again?
It seems it depends on a few services at the back that are both disabled and turned off on server systems.
The fix is to turn them back on. Here is a code snippet – stick this into a CMD file and run from an Elevated Command Prompt.
NOTE: You will still need to visit your Network Connections & Sharing screen from Control Panel, go into “Change Advanced Sharing Settings” and turn it ON after the script runs
@ECHO OFF ECHO. ECHO. ECHO ECHO Fixing Network Discovery ECHO ECHO. ECHO Turning on services… SC CONFIG Dnscache START=AUTO SC START Dnscache ECHO DNS Client… OK SC CONFIG FDResPub START=AUTO SC START FDResPub ECHO Function Discovery Resource Publication… OK SC CONFIG SSDPSRV START=AUTO SC START SSDPSRV ECHO SSDP Discovery… OK SC CONFIG UPnPHost START=AUTO SC START UPnPHost ECHO uPNP Host… OK ECHO. ECHO Please visit the Network Connections and Sharing window, ECHO Change Advanced Sharing Settings screen and ECHO enable Network Discovery now. ECHO. ECHO.