Need a script to turn off firewall and turn on file sharing and discovery?
12/30/2014 2394 views
I need a script to run to turn off the firewall and turn on file sharing and discovery?
Community Chosen Answer
Please log in to answer
You didn't mention what operating system, but you should be able to run a batch file similar to this:
netsh firewall set opmode disable
netsh firewall set service type=fileandprint mode=enable profile=all
netsh advfirewall firewall set rule group=”network discovery” new enable=yes
Answered 12/30/2014 by: jknox