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!
Asked
Active
Viewed 1,330 times
3

Facundo
- 41
- 2
- 4
-
5Welcome 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
-
1Do you have any code you could post from what you attempted? – Dan Feb 13 '12 at 15:13
1 Answers
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
-
1I 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
-
1Please 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