Windows firewall settings

K

kapibarra

Hi all. I have an issue wherein I will configure the firewall on an XP
SP2 machine, and it seemingly will randomly lose it's settings. Not
sure why they get reset to default, but we do not use group policy/local
policy on these machines so if it's not that, I don't know what else it
could be.

What I really want to know is is there some way for me to save or export
the windows firewall settings so that when they mysteriously vanish, I
can put them back quickly again. Could I possibly export a registry
setting maybe?

Thanks!
 
S

sunny_ti

Hello Kapibarra,

Yah some times the windows firewall (firewall.cpl) automatically changes it
settings, For example like the "File and Printer Sharing" service enables
automatically, I also don't know why, but may be because of some spyware.

There's is an easy way to restore the settings of the firewall and that is
you can create a batch file and run it when ever the settings are lost or you
can place in it the Startup folder
Start --> All Programs --> Startup
so that it will run each time whenever you logon.

I'm writing an example so it will help you...

1. Open Cmd.
2. Copy and paste this command
"netsh firewall set service type = FILEANDPRINT mode = disable"

It will disable the File and Print service. In this way you can make all the
settings enable or disable. For more help write in CMD

"netsh firewall /?" It will show all the commands.
"netsh firewall set /? It will show all the options which we can set.
"netsh firewall show/? It will show all the options which we can see to
check whether what service or program is enabled or disabled.

Creating a batch file:

1. Open Notepad
2. type the commands you want to run and save it as "Anyname.bat" not with
..txt extension.
3. Click on it when ever you want to run it.

Hope that it will help you...Take Care... Have a Nice Day.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top