title: How do you programmatically Turn Password Protected Sharing on/off in Windows 7?
body: <p>Let me apologize ahead of time. I saw this question on here already, but it has not been answered completely. (<a href="https://stackoverflow.com/questions/1682944/how-do-i-turn-password-protected-sharing-on-or-off-programmatically">How do I turn Password Protected Sharing on or off programmatically?</a>). I couldn't figure out how to have a question addressed again, without simply asking a new question. If I should have done something different please let me know so I don't make the same mistake twice. </p>
  
  <p>We are using C# to edit network settings and add 2 firewall rules to Windows 7 for a legacy application that needs Windows XP style shares. We have figured out everything except how to "Turn Off Password Protected Sharing". If anyone has figured this out please let me know. </p>
  
  <p>I have already exported the entire registry before and after adjusting the setting. Used Beyond Compare to locate any difference, but nothing useful was found. Any and all ideas are appreciated.</p>