3


I need to know how to enable the "Network Discovery" option in Windows.
I tried to make it with WMI, but i couldn't.
Can someone help me?
Thank!

Facundo
  • 41
  • 2
  • 4
  • 5
    Welcome to StackOverflow. Questions are more readily answered on here if you paste the code that you have tried along with the question. – gregwhitaker Feb 13 '12 at 15:13
  • 1
    Do you have any code you could post from what you attempted? – Dan Feb 13 '12 at 15:13

1 Answers1

1

This has been solved here: How to programmatically turn on "Network Discovery" in Windows OS?

Not sure if you already tried that solution or not, but it should work

Community
  • 1
  • 1
Luke101
  • 63,072
  • 85
  • 231
  • 359
  • 1
    I solved the problem. Solution: Change the rule in the windows firewall for "network discovery" "netsh advfirewall firewall set rule group="network discovery" new enable=yes" This command is executed with System.Diagnostics.ProcessStartInfo and System.Diagnostics.Process in C#. thanks for reply. – Facundo Feb 13 '12 at 16:02
  • 1
    Please read the Stackoverflow FAQ. You can answer your own questions and accept them so they can be closed. Posting them as a comment on an answer is certainly not the way to go. – Maarten Bodewes Feb 21 '13 at 20:58