API Reference
Class
SmbShareQuery
Collects SMB share metadata using native Windows APIs with WMI fallback.
Inheritance
- Object
- SmbShareQuery
Methods
Get 2 overloads
public static SmbShareCollectionResult Get(SmbShareQueryOptions options) #Returns:
SmbShareCollectionResultGets SMB share metadata for the local or specified computer.
Parameters
- computerName System.String = null
- Target computer. Empty, null, or "." uses the local computer.
Returns
Share collection result with diagnostics when a provider cannot collect evidence.
Examples
SmbShareCollectionResult result = SmbShareQuery.Get(Environment.MachineName);
foreach (SmbShareDetails share in result.Shares)
{
Console.WriteLine($"{share.Name}: {share.Path}");
}
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object