Export (0) Print
Expand All

AuthenticablePrincipal.ExpirePasswordNow Method

Expires the password for this account. This will force the user to change his/her password at the next logon.

Namespace:  System.DirectoryServices.AccountManagement
Assembly:  System.DirectoryServices.AccountManagement (in System.DirectoryServices.AccountManagement.dll)

public void ExpirePasswordNow()

ExceptionCondition
PrincipalOperationException

An exception occurred when saving the changes to the store.

Call this method to force the user to change the password at the next logon.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft