Solved

netsh, cmd

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mapBully challenge 6 114
robocopy vs xcopy vs copy 8 90
Apps blocked by Java 9 63
Full Screen problem when auto scale IFRAME 2 64
This is an explanation of a simple data model to help parse a JSON feed
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now