This recipe shows how to reset the password of the KRBTGT account.
Resetting the KRBTGT secret
Getting ready
To reset the password for the KRBTGT account, sign into a domain controller with a user account that is a member of the Domain Admins group.
How to do it...
Perform the following lines of PowerShell:
Import-Module ActiveDirectory
Set-ADAccountPassword -Identity (Get-ADUser krbtgt).DistinguishedName
-Reset -NewPassword (ConvertTo-SecureString "Rand0mCompl3xP@ssw0rd!"
-AsPlainText -Force)