Change Users login password

Ashan Jayasundara 41 Reputation points
2022-09-15T14:27:42.063+00:00

I am trying to update users login password by executing following command while connected to the VPN and execution completed without any error but my local cached password does not updated and i have to old password to login to workstation. So I am expecting your expert assistance regarding this issue

Thank you

**Set-ADAccountPassword $username -Reset -NewPassword $encryptPassword -Credential $basicAdminUserCreds -server $domainControllerIP **

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,734 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,836 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,359 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. BrianSiegman-1559 21 Reputation points
    2022-09-15T17:10:56.133+00:00

    Why not use the change password feature on the client (CTRL-ALT-DEL) while connected to VPN? The Set-ADAccountPassword I believe only updates the domain, similar to changing from ADUC.

    While on VPN, you can try to lock the machine, then unlock with new password.