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-PasswordRemotely { | |
| ## Change a password on a remote forest. | |
| ## Used Get-Credential to avoid password in PSReadLine | |
| ## The method above is actually based on NetUserChangePassword function. | |
| ## Inspired from @chryzsh | |
| ## https://gist.github.com/chryzsh/f814a3d6088c5bc8f1adfafce2eb3779 | |
| [CmdletBinding()] |