TestimoX

API Reference

Class

GuestAccountChecker

Namespace ADPlayground.Users
Assembly ADPlayground

Provides methods to check if the built-in Guest account is enabled.

Inheritance

  • Object
  • GuestAccountChecker

Constructors

public GuestAccountChecker(Func<String, Boolean> isEnabled = null) #

Initializes a new instance of the GuestAccountChecker class.

Parameters

isEnabled System.Func{System.String,System.Boolean} = null optionalposition: 0
Optional delegate used to determine if the Guest account is enabled for a domain.

Methods

public Boolean IsGuestEnabled(String domainName = null) #
Returns: Boolean

Determines whether the Guest account is enabled.

Parameters

domainName System.String = null optionalposition: 0
Target domain or null for the current domain.

Returns

true when enabled.

public Void ReportIfEnabled(String domainName = null) #
Returns: Void

Logs a warning if the Guest account is enabled.

Parameters

domainName System.String = null optionalposition: 0
Target domain or null for the current domain.