Ok you get this error. How to repair it correctly. I get it today and like always I know that I need to reset computer account password. Usually people rejoin computer to domain. but here is simpler solutions, or at least similar when it comes to time consumption.
First of all you need to log in. If you don’t know local admin password disconnect network card and login with your domain password that is cached in computer. After you log in connect network card again.
Now open Powershell and test you secure channel and if it gives you false repair it. Use Get-Credential only if you don’t have enough rights for changing computer object.
Test-ComputerSecureChannel -Verbose Test-ComputerSecureChannel -Repair -Credential (Get-Credential) -Verbose