WindowsDomainClient class

Namespace Runic.Platform.Administration.Windows.DirectoryServices · Runic.Platform.Administration.Windows 0.7.0-preview.5

public sealed class WindowsDomainClient

Native machine membership and controller discovery, without ADSI.

Constructors

WindowsDomainClient

public WindowsDomainClient(string? computerName = null)

Creates a client for the local computer, or an explicit remote computer.

Methods

DiscoverController

public DomainControllerInfo DiscoverController(string? domainName = null, bool requirePrimary = false, bool requireWritable = true)

Discovers a DNS-named directory controller, with optional primary-controller and writable requirements.

GetMembership

public DomainMembership GetMembership()

Reads join state and domain role; a workgroup is a successful result, not a failed domain query.