Powershell – 在AD中testing用户凭据,并重置密码
我可以成功使用Powershell来判断用户是否在Active Directory中进行身份validation: Function Test-ADAuthentication { param($username,$password) (new-object directoryservices.directoryentry "",$username,$password).psbase.name -ne $null } Test-ADAuthentication "test" "Password1" 但是,我不能为了我的生活弄清楚如何: 检查密码是否需要重置,而 validation发送的凭证在他们的最后一个密码上工作。 怎么能这样呢?