Editar

Compartilhar via


ComputerPrincipal.FindByBadPasswordAttempt Method

Definition

Returns a PrincipalSearchResult<T> collection of ComputerPrincipal objects that have had bad password attempts within the parameters specified.

public:
 static System::DirectoryServices::AccountManagement::PrincipalSearchResult<System::DirectoryServices::AccountManagement::ComputerPrincipal ^> ^ FindByBadPasswordAttempt(System::DirectoryServices::AccountManagement::PrincipalContext ^ context, DateTime time, System::DirectoryServices::AccountManagement::MatchType type);
public static System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal> FindByBadPasswordAttempt (System.DirectoryServices.AccountManagement.PrincipalContext context, DateTime time, System.DirectoryServices.AccountManagement.MatchType type);
static member FindByBadPasswordAttempt : System.DirectoryServices.AccountManagement.PrincipalContext * DateTime * System.DirectoryServices.AccountManagement.MatchType -> System.DirectoryServices.AccountManagement.PrincipalSearchResult<System.DirectoryServices.AccountManagement.ComputerPrincipal>
Public Shared Function FindByBadPasswordAttempt (context As PrincipalContext, time As DateTime, type As MatchType) As PrincipalSearchResult(Of ComputerPrincipal)

Parameters

context
PrincipalContext

The PrincipalContext that specifies the server or domain against which operations are performed.

time
DateTime

A DateTime structure that is used in conjunction with the MatchType to find computers with bad password attempts.

type
MatchType

The MatchType that specifies the type of comparison to use in the search.

Returns

A PrincipalSearchResult<T> that contains one or more ComputerPrincipal objects that match the search parameters, or an empty collection if no matches are found.

Remarks

The time will default to UTC. If you want to specify the time in local time, then specify the Kind property of the time object as Local.

Applies to