Wednesday, July 8, 2015

Stopping & Starting firewall with command: Automation

After long time writing post.

Toady found very good automation which can help you start & stop firewall with some small commands.

its very useful for creating script / automation for windows customization 

To check the status of firewall
Netsh Advfirewall show allprofiles

To turn of firewall
NetSh Advfirewall set allprofiles state off

To Turn On firewall
NetSh Advfirewall set allrprofiles state on

to run this command make sure you have enough permission like admin account access on server / workstation.


Post a Comment