title: How do I turn Password Protected Sharing on or off programmatically?
body: <p>Windows Vista and 7 has this switch in Network and Sharing Center. It's on by default, and that prevents unauthenticated access to shares even if they're shared with Everyone (like the Public folder). I need to teach my application to turn it on and off automagically. How? <s>I suspect there is a value somewhere in the registry that's responsible for this, but I have no idea how to find it.</s></p>