title: Is there a way to disable the write behind caching policy on a disk drive programmatically using C# in windows?
body: <p>I need to remove write behind caching on the disk drives of our servers. Doing so in windows ==> Device Manager ==> Disk Drives ==> (right click) Properties ==> Policies ==> (CheckBox) Enable write behind caching | is easy but windows re-enables it automatically. I believe this happens with updates. </p>
  
  <p>I want to know if I can access these policies using C# to disable them on a daily basis. </p>
  
  <p>Anyone know of a way?</p>
  
  <p>I have looked at DriveInfo but found no methods to access the policies.</p>