TestimoX

API Reference

Class

SmbShareDiagnostics

Namespace ComputerX.Smb
Assembly ComputerX
Modifiers static

Builds end-to-end SMB share diagnostics from share metadata, share ACLs, NTFS ACLs, and optional open-file evidence.

Inheritance

  • Object
  • SmbShareDiagnostics

Methods

Get 2 overloads
public static SmbShareDiagnosticResult Get() #
Returns: SmbShareDiagnosticResult

Runs SMB share diagnostics for the local computer.

Returns

Aggregated share diagnostics.

Examples


SmbShareDiagnosticResult result = SmbShareDiagnostics.Get();
foreach (SmbShareDiagnosticItem item in result.Shares)
{
    Console.WriteLine($"{item.Share.Name}: {item.Findings.Count} findings");
}
                
public static SmbShareDiagnosticResult Get(SmbShareDiagnosticOptions options) #
Returns: SmbShareDiagnosticResult

Runs SMB share diagnostics using the supplied options.

Parameters

options ComputerX.Smb.SmbShareDiagnosticOptions requiredposition: 0
Diagnostics options.

Returns

Aggregated share diagnostics.

Examples


var options = new SmbShareDiagnosticOptions
{
    ComputerName = "FS01",
    ShareNames = new[] { "Finance" },
    IncludeNtfsAcl = true,
    IncludeOpenFiles = true
};

SmbShareDiagnosticResult result = SmbShareDiagnostics.Get(options);