Solved

netsh, cmd

Posted on 2012-04-05
4
371 Views
Last Modified: 2012-04-08
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
0
Comment
Question by:Reyesrj
  • 2
4 Comments
 
LVL 10

Assisted Solution

by:SuperTaco
SuperTaco earned 250 total points
ID: 37814845
Netsh firewall set opmode disable

You can also disable it with Group Policy if you can ever get those machines in house
0
 

Author Comment

by:Reyesrj
ID: 37814882
These workstations are in house, all within the domain.  How does the above command get sent to a remote workstaton?
0
 
LVL 6

Accepted Solution

by:
Joshua1909 earned 250 total points
ID: 37815010
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
 

Author Closing Comment

by:Reyesrj
ID: 37822477
Thank you
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is an explanation of a simple data model to help parse a JSON feed
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question