Feel free to do so anyway! ;-)

 John W. Cook
Network Operations Manager
Partnership For Strong Families
5950 NW 1st Place
Gainesville, Fl 32607
Office (352) 244-1610
Cell     (352) 215-6944
MCSE, MCP+I, MCTS, CompTIA A+, N+, VSP4, VTSP4

From: Michael B. Smith [mailto:[email protected]]
Sent: Thursday, December 13, 2012 9:11 AM
To: NT System Admin Issues
Subject: RE: netsh advfirewall firewall to disable a rule - RESOLVED

Glad to help! :)

I was about to send you my powershell code that does this.

From: Webster [mailto:[email protected]]
Sent: Thursday, December 13, 2012 8:52 AM
To: NT System Admin Issues
Subject: RE: netsh advfirewall firewall to disable a rule - RESOLVED

http://technet.microsoft.com/en-us/library/dd734783(v=ws.10).aspx

new
Any parameter that precedes this keyword is used to find a match for the rules 
that are modified. Any parameter that follows this keyword indicates a value 
that is modified in the rules that match the specified criteria.

Command that works:

netsh advfirewall firewall set rule name="Citrix IMA (UDP-In)" profile=any new 
enable=no

Updated 1 rule(s).
Ok.

Rule now shows as disabled in the GUI.

Thanks


Webster

From: Webster [mailto:[email protected]]
Subject: netsh advfirewall firewall to disable a rule

I am trying to use netsh advfirewall firewall to disable a firewall rule but 
having no luck.

netsh advfirewall firewall set rule name=Citrix IMA (UDP-In) profile=domain 
enable=no

According to the help text:

set            - Sets new values for properties of a existing rule.

When I run the above command, the error message say when using "Set", "new" 
must also be used and can't be the last on the line.

When I add "new" to the line:

netsh advfirewall firewall set rule new name= Citrix IMA (UDP-In) 
profile=domain enable=no

The error says the command was not found.  I thought it might be the name= so I 
tried:

netsh advfirewall firewall set rule name=" Citrix IMA (UDP-In)" profile=domain 
enable=no

But then the error says:

netsh advfirewall firewall set rule "name= Citrix IMA (UDP-In)" profile=domain 
enable=no

command not found.  Notice it put the entire name= in quotes.

Yes, I know, I can use the GUI but I MUST use the command line for the project 
I am doing.

What am I missing or doing wrong?

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
[email protected]<mailto:[email protected]>
with the body: unsubscribe ntsysadmin

________________________________

CONFIDENTIALITY STATEMENT: The information transmitted, or contained or 
attached to or with this Notice is intended only for the person or entity to 
which it is addressed and may contain Protected Health Information (PHI), 
confidential and/or privileged material. Any review, transmission, 
dissemination, or other use of, and taking any action in reliance upon this 
information by persons or entities other than the intended recipient without 
the express written consent of the sender are prohibited. This information may 
be protected by the Health Insurance Portability and Accountability Act of 1996 
(HIPAA), and other Federal and Florida laws. Improper or unauthorized use or 
disclosure of this information could result in civil and/or criminal penalties.
Consider the environment. Please don't print this e-mail unless you really need 
to.

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to [email protected]
with the body: unsubscribe ntsysadmin

Reply via email to