title: Detect read-only domain controller with .NET?
body: <p>I want to be able to determine whether a particular domain controller is read-only.  I know I can do stuff like this to get a writeable DC:</p>
  
  <pre><code>using( Domain d = Domain.GetCurrentDomain() )
  { 
      DomainController dc = d.FindDomainController(
          "mysitename", LocatorOptions.WriteableRequired);
  }
  </code></pre>
  
  <p>But given a DomainController object is there a way to determine whether that DC is writeable?</p>
  
  <p>The reason I'm asking is that I want to try to select a preferred domain controller that is 1. Writeable 2. In my site and 3. a global catalog.  There doesn't seem to be a good way to find a server with all these attributes.</p>