Wednesday, July 30, 2014

Enabling Network Discovery on Server 2008R2 (and maybe other OSes)

Feel free to Google to your hearts content to figure out why that "Turn on network discovery" option wont stay on.  Knowledge is power :)

Here is the fix.

(Yes, its old school cmd line.... Yes, Its probably easier in PS)

ECHO OFF
ECHO Setting DNS Client Service to Automatic
sc config "dnscache"  start= auto
ECHO Setting Function Discovery Resource Publication Service to Automatic
sc config "fdrespub"  start= auto
ECHO Setting SSDP Discovery Service to Automatic
sc config "ssdpsrv"  start= auto
ECHO Setting uPnP Device Host Service to Automatic
sc config "upnphost"  start= auto
ECHO -
ECHO Starting those services...
ECHO -
net start "DNS Client"
net start "Function Discovery Resource Publication"
net start "SSDP Discovery"
net start "UPnP Device Host"
ECHO - Ok, That part is done.
PAUSE
control /name Microsoft.NetworkAndSharingCenter /page Advanced
ECHO - Ok.. So *Now* you can "Turn on network discovery" in the page shown.
PAUSE

If this is helpful to you.. Cheers!

-Jeff


No comments:

Post a Comment