Enable file/printer sharing in home wlan only, disabled in otherwlans

T

Tomi Lehto

Hello group,

I've been wondering if it is possible to quickly enable or disable
windows shares (directories and printers) depending on if I am on a
home wlan or other wlans (school).

Since the network can be the same (192.168.x.x) in many places, static
setting in software firewall is not enough, although I could manually
enable or disable a firewall rule depending where I am.

What I am thinking is a way to programmatically detect if Windows is
in my own wlan (via ssid) and then disable sharing in windows, so
firewall could be left alone. Alternatively the firewall could do this
as well but at least in F-Secure and Comodo firewall I am using on my
computers do not have anything like that.

Thanks,
Tomi
 
J

Jack [MVP-Networking]

Hi
It is Not a big deal to Right click on the folder choose the sharing and
Uncheck the sharing Box.
But it is crude way that in the long run might confuse the whole system.
I switched Off the public sharing on my laptop and all the other sharing I
protect with Password.
Thus if some one tries to log on he/she goes nowhere.
Jack (MS, MVP-Networking).
 
T

Tomi Lehto

Hi
It is Not a big deal to Right click on the folder choose the sharing and
Uncheck the sharing Box.
But it is crude way that in the long run might confuse the whole system.
I switched Off the public sharing on my laptop and all the other sharing I
protect with Password.
Thus if some one tries to log on he/she goes nowhere.
Jack (MS, MVP-Networking).

Thanks for your reply,

I think switching all different shares manually on and off every time
not only might confuse the system but would also get tiresome after a
while.
I guess disabling public sharing and protecting the shares with
password is the way to go.

Tomi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top