Sunday, July 22, 2007

Tips and Tricks WinXp

Command "Netsh" on Winxp
The netsh command on windowsXP can be used to do many things, some examples

To create a simple batch file for starting/stoping winxp firewall
Example:

Run: cmd.exe
c:\copy con fire.bat
netsh firewall set opmode disable | or enable ----- start or stop the firewall
^Z and enter -- saves the batch


Other examples:
Run: cmd.exe
c:\
netsh firewall add portopening TCP 80 webserver ----- open port 80
c:\
netsh firewall delete portopening TCP 80 ---- delete the rule


No comments: