Can't disable firewall using command line (XP SP3)

Hi all

I need to disable the Windows Firewall.

Previously on our XP SP2 images the following command worked perfectly as part of a runonceex take on first startup of the sysprep'd image:

netsh firewall set opmode mode=disable profile=all

We're now moving to SP3 (don't ask!!).  However, that command doesn't seem to have any affect.  Upon startup, the firewall service is happily running.

I've tried using the command after startup too, in case there was a syntax error.  Executing the command returns 'OK', but no changes to the service are made!!

Any advice would be appreciated.

Thanks in advance.
epoch-ukAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JonveeCommented:
The steps in this article are quoted to be for XP SP2 and SP3>
"How can I turn on or turn off the firewall in Windows XP Service Pack 2 or later versions?":
http://support.microsoft.com/kb/283673
0
JonveeCommented:
Ah, see if this helps>
Windows XP SP3 Enables The Firewall even If you have it disabled as a Group Policy! Quick Fix!:
http://www.asktheadmin.com/2008/04/windows-xp-sp3-enables-firewall-even-if.html
0
JonveeCommented:
So this work-a-round may be suitable, which is to create this line in the user login script:
sc config “SharedAccess” start= disabled
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Gregor LambertIT Manager / Systems EngineerCommented:
I would recommend using group policy to perform this action
check out the technet site for more info.

Deploying Windows Firewall Settings With Group Policy
http://technet.microsoft.com/en-us/library/bb490626.aspx
0
epoch-ukAuthor Commented:
Due to some complex scripting that's required for some of our more esoteric applications, we can't use group (or local) policy.

However, I'd completely forgotten about the 'SC config' command!!  Doh!

Thanks Jonvee ... solution accepted (and working).
0
JonveeCommented:
Good! .... thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.