netsh, command line editing of predefined win firewall

Networking/Security Forums -> Firewalls // Intrusion Detection - External Security

Author: maincomp PostPosted: Tue Aug 16, 2011 4:11 pm    Post subject: netsh, command line editing of predefined win firewall
    ----
I have a manual procedure right now that involved manually opening certain firewall ports in order to do some security testing on a system. I'd like to com up with a .cmd file that will do this for me, but I'm running into some syntax ignorance (even after going through technet/google).

Here's what I'd like to accomplish:
Add Win7/Server 2008 firewall exceptions for:
WMI DCOM-In
WMI ASync-In
WMI WMI-In
File and Printer Sharing (SMB-In)
Core Network DHCP-In

They're predefined in the gui and it's not difficult to do, just thought it would make sense to automate this as often as I do it.

This is as far as I've gotten, but is incorrect..

netsh advfirewall firewall set rule group="WMI ASync-In" new enable Yes



Networking/Security Forums -> Firewalls // Intrusion Detection - External Security


output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group