From: Tomi Lehto on
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
From: Jack [MVP-Networking] on
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).



"Tomi Lehto" <tlehto(a)gmail.com> wrote in message
news:f3f77ce5-0b46-4be8-9f42-3613b5bb9f33(a)q16g2000yqq.googlegroups.com...
> 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

From: Tomi Lehto on
On 3 maalis, 03:48, "Jack [MVP-Networking]" <j...(a)discussiongroup.com>
wrote:
> 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