1

I have just built a new server - windows server 2016

when trying to access its c: drive from any other server I was getting this error:

enter image description here

The I changed this settings:

enter image description here

and all is working fine.

question:

Is there a way to check if network discovery is on using powershell?

otherwise, when they give me another server, how can I check for this setting?

1 Answers1

2

It's not powershell, but:

Enable discovery: netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes Disable discovery: netsh advfirewall firewall set rule group="Network Discovery" new enable=No

link

Luuk
  • 152
  • 4
  • 1
    Thanks Luuk, but I don't think this answers the question about _how to check_. – Daniel K Jun 01 '19 at 19:42
  • 2
    `Get-NetFirewallRule -DisplayGroup "Network Discovery" | ft` (source: https://blog.frankfu.com.au/2018/03/13/enabling-network-discovery-on-windows-server/ – Luuk Jun 08 '19 at 09:39