API Reference
Class
GuestAccountChecker
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
- Optional delegate used to determine if the Guest account is enabled for a domain.
Methods
public Boolean IsGuestEnabled(String domainName = null) #Returns:
BooleanDetermines whether the Guest account is enabled.
Parameters
- domainName System.String = null
- Target domain or null for the current domain.
Returns
true when enabled.
public Void ReportIfEnabled(String domainName = null) #Returns:
VoidLogs a warning if the Guest account is enabled.
Parameters
- domainName System.String = null
- Target domain or null for the current domain.