ForceChangePassword
Change the user's password with net
Full Privileges Required!
Creating PSCredentials object
If we do not run PowerShell as other user, we may put their creds to secure PS object so we can impersonate him.
With first command we are converting a plaintext password to SecureString (which protecting creds from memory reading).
With second command we are putting that SecureString into PSCredentials object for further use.
Changing the user's password with PowerView
Here are are making a SecureString for new songbird's password and changing it using sreed's credentials in -Credential $Cred
. PowerView Required!
Last updated