Solved

netsh, cmd

Posted on 2012-04-05
4
364 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

11 Experts available now in Live!

Get 1:1 Help Now