Solved

netsh, cmd

Posted on 2012-04-05
4
372 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 114
egit plugin on eclipse 8 82
How to obtain Administrator permission when you are the Administrator 6 91
Why use this lambda? 12 25
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
A short article about problems I had with the new location API and permissions in Marshmallow
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

790 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