title: How to disable or stop Bluetooth driver programmatically using C# and WMI?
body: <p>How to disable or stop Bluetooth driver programmatically using C# and/or WMI?
  I've tried method "Disable" which is in namespace Win32_NetworkAdapter,
  but looks like it doesn't help.</p>
  
  <p>here is an example, what I've done:</p>
  
  <pre><code>ManagementObject classInstance =
                  new ManagementObject("\\root\\cimv2",
                  "Win32_NetworkAdapter.DeviceID='16'",
                  null);
  
              // no method in-parameters to define
  
  
              // Execute the method and obtain the return values.
              ManagementBaseObject outParams =
                  classInstance.InvokeMethod("Disable", null, null);
  
              // List outParams
              Console.WriteLine("Out parameters:");
              Console.WriteLine("ReturnValue: " + outParams["ReturnValue"]);
  </code></pre>
  
  <p>Thanks for any ideas!</p>
  
  <p>upd: I've also tried to call StopService on WIN32_SystemDriver object, but it returns error code 4;</p>