klist not showing tickets

When using klist it’s not showing any kerberos tickets while I’m sure they are there.
PS C:\windows\system32> klist
Credentials cache C:\Users\<user>\krb5cc_<user> not found.

This has happened because I was using some klist.exe from OpenJDK which is in my path (system variables) before systemroot.

So it was using the klist.exe from the directory C:\Program Files\Microsoft\jdk-\bin

When I checked %SystemRoot%\System32\klist.exe which is the Windows original file then it shows the Kerberos tickets.

In command prompt : dir %SystemRoot%\System32\klist.exe

Leave a Reply

Your email address will not be published. Required fields are marked *