API Reference
Class
RdpSecurityLocalService
Reads local RDP security posture on a Domain Controller via Remote Registry and an optional TCP listener probe.
Inheritance
- Object
- RdpSecurityLocalService
Methods
public static View Evaluate(String domainName, String controller, Int32 timeoutMs = 1000, Int32 retryCount = 1, Int32 retryDelayMs = 100, Func<String, IEnumerable<Int32>, Int32, Int32, Int32, CancellationToken, Task<IReadOnlyList<PortTestResult>>> tester = null, CancellationToken cancellationToken = null) #Returns:
ViewReturns RDP security settings for the specified controller and optionally probes the TCP listener reachability using a synchronous facade.
Parameters
- domainName System.String
- DNS domain name for context.
- controller System.String
- Domain controller name.
- timeoutMs System.Int32 = 1000
- TCP connect timeout in milliseconds.
- retryCount System.Int32 = 1
- Number of retries for the port probe.
- retryDelayMs System.Int32 = 100
- Delay between retries in milliseconds.
- tester System.Func{System.String,System.Collections.Generic.IEnumerable{System.Int32},System.Int32,System.Int32,System.Int32,System.Threading.CancellationToken,System.Threading.Tasks.Task{System.Collections.Generic.IReadOnlyList{ADPlayground.Network.PortTestResult}}} = null
- Optional TCP probe override used by tests.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Typed RDP security and exposure posture view.
public static async Task<View> EvaluateAsync(String domainName, String controller, Int32 timeoutMs = 1000, Int32 retryCount = 1, Int32 retryDelayMs = 100, Func<String, IEnumerable<Int32>, Int32, Int32, Int32, CancellationToken, Task<IReadOnlyList<PortTestResult>>> tester = null, CancellationToken cancellationToken = null) #Returns:
Task<View>Returns RDP security settings for the specified controller and optionally probes the TCP listener reachability.
Parameters
- domainName System.String
- DNS domain name for context.
- controller System.String
- Domain controller name.
- timeoutMs System.Int32 = 1000
- TCP connect timeout in milliseconds.
- retryCount System.Int32 = 1
- Number of retries for the port probe.
- retryDelayMs System.Int32 = 100
- Delay between retries in milliseconds.
- tester System.Func{System.String,System.Collections.Generic.IEnumerable{System.Int32},System.Int32,System.Int32,System.Int32,System.Threading.CancellationToken,System.Threading.Tasks.Task{System.Collections.Generic.IReadOnlyList{ADPlayground.Network.PortTestResult}}} = null
- Optional TCP probe override used by tests.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Typed RDP security and exposure posture view.
public static View Get(String domainName, String controller) #Returns:
ViewReturns RDP security settings for the specified controller (reads remote HKLM).
Parameters
- domainName System.String
- controller System.String