TestimoX

API Reference

Class

SmbShareEnumerator

Namespace ADPlayground.DomainControllers
Assembly ADPlayground

Enumerates SMB shares on domain controllers.

Inheritance

  • Object
  • SmbShareEnumerator

Constructors

public SmbShareEnumerator(Func<IEnumerable<String>> enumerateDcs = null, Func<String, IEnumerable<SmbShareInfo>> enumerateShares = null) #

Initializes a new instance of the SmbShareEnumerator class.

Parameters

enumerateDcs System.Func{System.Collections.Generic.IEnumerable{System.String}} = null optionalposition: 0
Function returning domain controller names.
enumerateShares System.Func{System.String,System.Collections.Generic.IEnumerable{ADPlayground.DomainControllers.SmbShareInfo}} = null optionalposition: 1
Function returning share info for a domain controller.

Methods

EnumerateShares 2 overloads
public IEnumerable<SmbShareInfo> EnumerateShares(String dcName) #
Returns: IEnumerable<SmbShareInfo>

Enumerates shares for the specified domain controller.

Parameters

dcName System.String requiredposition: 0
public IEnumerable<SmbShareInfo> EnumerateShares() #
Returns: IEnumerable<SmbShareInfo>

Enumerates shares for all domain controllers.