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()

Exception Condition
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
Available since 3.5

System.DirectoryServices.AccountManagement
AuthenticablePrincipal Class
System.DirectoryServices.AccountManagement Namespace Overview

Return to top
Show: