I'd like to create a script to do various things when the network connection changes. For example, if the machine connects to my office network I might desire it to:
- mute itself
- change its DNS
- change its proxy settings
- change default printer
Then, when the machine is off the office network it might revert some of those.
Presumably the "active network" would be based on IP address/gateway range or WIFI network name, etc.
Do you have any recommended tools for accomplishing this? I can see something like this being applicable to many IT pros so I'm sure there are some good tips out there.
Note that this is desired to function when the network changes--not just when the user logs on/off.