Need a script to turn off firewall and turn on file sharing and discovery?
I need a script to run to turn off the firewall and turn on file sharing and discovery?
Community Chosen 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
Please log in to comment
log in to commentPlease