Jump to content

Adding exception to Windows Firewall


Recommended Posts

Hi,

I just made a XP SP3 Media Center ISO and i added a program which allows file transfer between PC's in a LAN network.

This program starts with windows and i want it to be like that. But the problem is after installation is finished Windows Firewall shows a message something like this the first time windows shows desktop:

Windows Firewall:

LANshare.exe is trying to receive a connection.What do you want to do?

Block Unblock Ask me later

It looks kind of scary after the first reboot. Is there any way i can add an exception during Unattended installation so that firewall doesn't show this scary message after the First boot?

Link to comment
Share on other sites


Add something like this to a batch file which is called from your WINNT.SIF

WINNT.SIF

[GuiRunOnce]
Command0=%SystemDrive%\install.cmd

install.cmd

ECHO Configuring Windows Firewall
ECHO Please Wait...
netsh.exe firewall set service fileandprint enable all
netsh.exe firewall set service remotedesktop enable all
netsh.exe firewall set service remoteadmin enable all
netsh.exe firewall set allowedprogram "%ProgramFiles%\Netmeeting\Conf.exe" "Netmeeting" Enable all
netsh.exe firewall set allowedprogram "%ProgramFiles%\Windows Media Player\wmplayer.exe" "Windows Media Player 11" Enable all
ECHO.

Of course you will have to change it to point to the correct program.

Enjoy.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...