How to enable or disable Windows Firewall in Vista in just one click
The Windows Firewall in Windows Vista can not be quickly enabled or disabled, must necessarily pass through the control panel and disable it from the "Windows Firewall". It is not therefore the most practical way to do it repeatedly.
But there is a practical and fast way to exemplify this process by creating two connections. Right click in a blank screen and select New -> shortcut, naming the first "Firewall Off" and the second "Firewall ON"
For the location of the link included:
- Firewall OFF
%systemroot%\System32\netsh.exe firewall set opmode disable
- Firewall ON
%systemroot%\System32\netsh.exe firewall set opmode enable
Finally, set the window properties Run -> minimized so as to not visualize the process.
That's it, click on Firewall ON to activate the Windows Firewall and click on Firewall OFF to disable it. As simple as that!
Re: How to enable or disable Windows Firewall in Vista in just one click
Seems to be an interesting trick. Will try it on my home PC today. If it works than this will be very useful for me as I do need to disable firewall sometimes. Also I will like to know whether this trick will run on Windows XP as well. Because I have Windows XP also along with Windows Vista dual boot. If not this, and if any other similar trick available for XP, please provide it. Thank you.
Re: How to enable or disable Windows Firewall in Vista in just one click
Quote:
Firewall OFF
%systemroot%\System32\netsh.exe firewall set opmode disable
Firewall ON
%systemroot%\System32\netsh.exe firewall set opmode enable
There are no such file called netsh.exe in System32 ..Please explain more about dat
Re: How to enable or disable Windows Firewall in Vista in just one click
There is netsh.exe . Run this c:\windows\system32\netsh.exe (if you have installed windows vista in c: ). You'll find this file.
Re: How to enable or disable Windows Firewall in Vista in just one click
thanks buddy,,,I got that:thumbup1:
Quote:
Firewall OFF
%systemroot%\System32\netsh.exe firewall set opmode disable
Firewall ON
%systemroot%\System32\netsh.exe firewall set opmode enable
but no command link opmode....))
Re: How to enable or disable Windows Firewall in Vista in just one click
.. - Goes up one context level.
? - Displays a list of commands.
abort - Discards changes made while in offline mode.
add - Adds a configuration entry to a list of entries.
advfirewall - Changes to the `netsh advfirewall' context.
alias - Adds an alias.
bridge - Changes to the `netsh bridge' context.
bye - Exits the program.
commit - Commits changes made while in offline mode.
delete - Deletes a configuration entry from a list of entries.
dhcpclient - Changes to the `netsh dhcpclient' context.
dump - Displays a configuration script.
exec - Runs a script file.
exit - Exits the program.
firewall - Changes to the `netsh firewall' context.
help - Displays a list of commands.
http - Changes to the `netsh http' context.
interface - Changes to the `netsh interface' context.
ipsec - Changes to the `netsh ipsec' context.
lan - Changes to the `netsh lan' context.
nap - Changes to the `netsh nap' context.
netio - Changes to the `netsh netio' context.
offline - Sets the current mode to offline.
online - Sets the current mode to online.
p2p - Changes to the `netsh p2p' context.
popd - Pops a context from the stack.
pushd - Pushes current context on stack.
quit - Exits the program.
ras - Changes to the `netsh ras' context.
rpc - Changes to the `netsh rpc' context.
set - Updates configuration settings.
show - Displays information.
unalias - Deletes an alias.
winhttp - Changes to the `netsh winhttp' context.
winsock - Changes to the `netsh winsock' context.
wlan - Changes to the `netsh wlan' context.
here is the all commands with firewall