Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows XP / Security and Administration / September 2004

Tip: Looking for answers? Try searching our database.

Sample BAT file for configuring Win XP SP2 ICF Settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bryan - 29 Sep 2004 04:07 GMT
Hi All,

I would like to turn on the following in XP SP2 ICF:

File And Print Sharing

Wit the use of Netsh, managed to execute in the command line:

Netsh
Firewall
Set Service FileandPrint Enable

How do I save the above commands into a BAT file so that after deploying XP
SP2, I can just run the BAT to configure the ICF.

I am in a PDC environment, so cannot use GPO to deploy the settings to ICF.

Thank you.
Torgeir Bakken \(MVP\) - 29 Sep 2004 10:14 GMT
> I would like to turn on the following in XP SP2 ICF:
>
[quoted text clipped - 10 lines]
>
> I am in a PDC environment, so cannot use GPO to deploy the settings to ICF.
Hi

Just run the following line:

Netsh.exe Firewall Set Service FileandPrint Enable

More about Netsh.exe in WF_XPSP2.doc "Deploying Windows Firewall
Settings for Microsoft Windows XP with Service Pack 2", downloadable from
http://www.microsoft.com/downloads/details.aspx?familyid=4454e0e1-61fa-447a-bdcd
-499f73a637d1


If you deploy SP2 with a scripted SP2 installation, you can also use
netfw.inf so your FW configuration changes comes in as part of the
SP2 installation (this way it is no need for any post Netsh.exe
instructions).

More about this here:
http://groups.google.com/groups?threadm=eLeh52CnEHA.592%40TK2MSFTNGP11.phx.gbl

Signature

torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Bryan - 01 Oct 2004 00:59 GMT
Thanks a lot!

Problem solved :)

"Torgeir Bakken (MVP)" wrote:

> > I would like to turn on the following in XP SP2 ICF:
> >
[quoted text clipped - 27 lines]
> More about this here:
> http://groups.google.com/groups?threadm=eLeh52CnEHA.592%40TK2MSFTNGP11.phx.gbl
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.