After long time writing post.
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.
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.
0 comments:
Post a Comment