Microsoft developed the Network Location Awareness (NLA) functionality years ago, and new possibilities were added since Vista and now Windows 7 have been released. So now you can make a security configuration switching whether you are connected to your domain or a public network. It's very useful for laptop configuration, which "move" often...
Is it possible to have anything else happen other than switching the firewall policies? Like running a script?