TestimoX

API Reference

Class

NullSessionSettingsService

Namespace ADPlayground.Domains
Assembly ADPlayground
Modifiers static

Reads Null Session related settings (restrictanonymous/-sam/-nullsession shares/pipes) from DCs.

Inheritance

  • Object
  • NullSessionSettingsService

Methods

public static Task<NullSessionSettingsSnapshot> GetSnapshotAsync(String domainName, CancellationToken cancellationToken = null) #
Returns: Task<NullSessionSettingsSnapshot>

Reads null session related settings from each domain controller and returns a snapshot.

Parameters

domainName System.String requiredposition: 0
DNS domain name to analyze.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Cancellation token.

Returns

Snapshot with per-controller settings and those allowing null sessions.

public static Task<NullSessionSettingsStatus> GetStatusForControllerAsync(String domainController, CancellationToken cancellationToken = null) #
Returns: Task<NullSessionSettingsStatus>

Reads null session related settings for a single domain controller.

Parameters

domainController System.String requiredposition: 0
Computer name of the domain controller.
cancellationToken System.Threading.CancellationToken = null optionalposition: 1
Cancellation token.

Returns

Status row or null when unavailable.