This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Set-LocalUserPassword | |
| { | |
| <# | |
| .SYNOPSIS | |
| Changes the password of any local user account using its current password for verification. | |
| .DESCRIPTION | |
| This function utilizes the System.DirectoryServices.AccountManagement .NET namespace to change a local user's password. | |
| Unlike the standard 'Set-LocalUser' cmdlet or 'net user' command, this function utilizes the 'ChangePassword' method. |