netsh, cmd

Hi everyone,

Is there a way to turn off the firewall on a remote workstation, within the domain, using netsh?  Also to turn on print and file sharing.

Thanks in advance
ReyesrjAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Joshua1909Connect With a Mentor Commented:
Unfortunately you cannot. There are command line utilities (pstools) that will let you execute commands such as the above to remote PCs, but all these tools will use administrative shares to run, which the firewall will block be default.

GPO is the only way I'm aware of to disable/modify the firewalls, then use GPO (see 1) or  scripts (see 2) to enable file and printer sharing.

1: http://www.intelliadmin.com/index.php/2008/10/enable-file-and-printer-sharing-using-group-policy/

2: http://www.theexperienceblog.com/2008/02/14/script-for-enabling-network-discovery-and-file-and-printer-sharing-in-vista/
0
 
SuperTacoConnect With a Mentor Commented:
Netsh firewall set opmode disable

You can also disable it with Group Policy if you can ever get those machines in house
0
 
ReyesrjAuthor Commented:
These workstations are in house, all within the domain.  How does the above command get sent to a remote workstaton?
0
 
ReyesrjAuthor Commented:
Thank you
0
All Courses

From novice to tech pro — start learning today.