• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

netsh, command line for added predefined win firewall

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Windows

View previous topic :: View next topic  
Author Message
maincomp
Just Arrived
Just Arrived


Joined: 25 Aug 2009
Posts: 0


Offline

PostPosted: Wed Aug 17, 2011 1:45 pm    Post subject: netsh, command line for added predefined win firewall Reply with quote

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
Back to top
View user's profile Send private message
georgec
SF Staff
SF Staff


Joined: 15 Nov 2010
Posts: 0


Offline

PostPosted: Fri Sep 02, 2011 6:21 pm    Post subject: Reply with quote

Isn’t simpler and faster to temporarily turn off the client firewall when performing these tests?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Windows All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register