I run a few vmware machines as devel/testing environments and need to keep them away from the internet most of the time, but still allow networking to the physical machine. In the past with XP etc I've done this by simply changing the gateway ip to something invalid.
But with Windows 7 if the gateway can't be reached it's reluctant to set the network location to "Home" and this causes trouble since I need to be joined to the homegroup for certain things. I realize another way of doing this is to set invalid dns servers which seems to work fine. But I'm wondering, is there a quick and simple "switch" in Windows 7 which can do this without resorting to policy editing etc?