Windows‎ > ‎

security

Reset password expiry : 

Import-Module ActiveDirectory
$user = Get-ADUser -Filter {sAMAccountName -eq 'login-name'}
$uObj = [ADSI]"LDAP://$user"
$uObj.put("pwdLastSet", 0)
$uObj.SetInfo()
$uObj.put("pwdLastSet", -1)
$uObj.SetInfo()


NTLM versus Kerberos
Comments