This recipe shows how to reset the password of the KRBTGT account.
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.
Perform the following lines of PowerShell:
Set-ADAccountPassword -Identity (Get-ADUser krbtgt).DistinguishedName
-Reset -NewPassword (ConvertTo-SecureString "Rand0mCompl3xP@ssw0rd!"