Link to home
Start Free TrialLog in
Avatar of manoire
manoire

asked on

Turn off windows firewall by script

I need to turn off windows firewall on some remote machines
More specifically, i need to enable ftp (open port 21 and port 20) for future, so that i can run a specific type of update.
(these machines run a specific job and we had a few go out, without windows firewall turned off, oops! So I'm trying to do it remotely)

These machines i have limited access to, I have a network management tool where i can send files, can execute a script. I do not have RDP (wish I did, then it would be simple).
A scripting approach is what i need. Any ideas?
Avatar of Geyybecca
Geyybecca
Flag of United Kingdom of Great Britain and Northern Ireland image

If your on a domain I would use Group Policy, take a look here for more details

http://technet.microsoft.com/en-us/library/bb490616.aspx#ELAA
Avatar of manoire
manoire

ASKER

Hi Geyybecca:
no, it is not on a domain. Each unit is set as a workgroup, stand alone at a remote location.
you can open the gpedit.msc console from your machine and edit the configuration to your dsires and after that export the policy and use the file exported to distribute it by your network managment tool
ASKER CERTIFIED SOLUTION
Avatar of Gastone Canali
Gastone Canali
Flag of Italy image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of manoire

ASKER

Worked perfectly, exactly what i was looking for.