Jump to content

Disable Windows XP Firewall remotely


ahmedramzi

Recommended Posts

I want to install an application on about 200 client PC's on the network in a workstation environment. the problem is that it needs administrator's credintials, also i cannot get pass from windows xp firewall.

any ideas?

Link to comment
Share on other sites


Are you not in a domain with that many pc's? I'd be interested to hear how you're going to deploy this application without it. In a workgroup you'd have to install it to each pc individually anyway.

Link to comment
Share on other sites

It depends on how you have security setup. If you have the admin shares enabled you should be able to map a network drive using the following command.

net use z: \\computer\c$ /user:computer\administrator password

You can then upgrade the netfw.inf (c$\WinNT\inf\netfw.inf) file with the desired firewall configuration. Once this is done you need to run a single command on the remote system "netsh firewall reset". This can be done several different ways.

Copy a batch file containing this line of code to the remote system and schedule it to run using soon (w2k resource kit) or schtasks (Windows XP). Another option is to use PsExec from SysInternals to run the command on the remote system.

Finally use "net use z: /delete" to delete the drive mapping.

Reference: Using the Windows Firewall INF File in Microsoft Windows XP Service Pack 2

There is a major drawback to this method in that any manual changes you have made to the firewall that aren't included in the netfw.inf file are lost. The better solution would be to dynamically generate the netfw.inf file based on the current firewall settings and applications installed on your system but this is a lot more complex.

Link to comment
Share on other sites

  • 2 months later...

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...