API Reference
Class
NullSessionSettingsService
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
- DNS domain name to analyze.
- cancellationToken System.Threading.CancellationToken = null
- 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
- Computer name of the domain controller.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Status row or null when unavailable.