Set "Network Location"

  • Thread starter Thread starter Clive
  • Start date Start date
C

Clive

When I'm connect to new networks I get asked to Set the "Network Location"
which you can set to Home, Work, Public.

Is there anyway script etc.. to set that value? so it doesn't ask for common
network locations.

I'm working with building machines a lot and don't want it to keep asking, I
know if I add the machine to a domain it intelligently detects the network
is Work... but I'm in a workgroup.

e.g. Run a script which sets either a single or group of addresses like
192.168.0.1 to be "Work"

Clive
 
Clive,

Two things that might help:
1. You can turn off the question altogether, in which case all new networks
will default to being public.
2. You can use the INetwork::SetCategory function to set the category of an
existing network.

By combining the two together you can achieve what you want, but I don't
think there is any way to do it without writing some code.

Jim
 
Back
Top