Skip to content

KLIST Windows Command Guide

The Windows klist command allows users to manage Kerberos tickets, view ticket information, and purge tickets from the cache. By using various options and parameters, users can perform tasks such as listing tickets in the cache, purging specific tickets, and renewing tickets. This command is essential for troubleshooting Kerberos authentication issues and managing ticket information on Windows systems.

Terminal window
klist [tickets | tgt | tgt <TargetName> | purge | purge <TargetName> | keys | purgekeys | credentials | tgt <TargetName> /EXPORT | tgt <TargetName> /PURGE | tickets /export [/f <filename>] [/e] | purge | luid <Luid> | tgt <TargetName> /renreq | tgt <TargetName> /renew [/E | /P] | tgt <TargetName> /referer <TargetName> | tgt <TargetName> /verify | tgt <TargetName> /delete | tgt <TargetName> /setpass [/P <oldpassword>] [/N <newpassword>] | tgt <TargetName> /showkeys | enttgt | initialtgt | tgt /cache | passwd /fromkey | /oncemode | /status]
OptionDescription
ticketsDisplay ticket list
tgtDisplay the current ticket-granting ticket
tgt Display the ticket for the specified target
purgePurge all tickets
keysDisplay list of key(s) in the keytab file
purgekeysPurge all keys from the keytab file
credentialsDisplay credential cache
tgt /EXPORTExport specified ticket to a file
tgt /PURGEPurge specific ticket
tickets /export [/f ] [/e]Export the ticket cache to a file
purgePurge the ticket cache
luid Perform operation related to LUID
tgt /renreqRenew a ticket
tgt /renew [/E/P]
tgt /referer Display the referrer of the ticket
tgt /verifyVerify a ticket
tgt /deleteDelete a ticket
tgt /setpass [/P ] [/N ]Change password
tgt /showkeysDisplay keys for a ticket
enttgtDisplay enterprise ticket
initialtgtDisplay initial ticket
tgt /cachePerform operations related to tickets cache
passwd /fromkeyPerform password change using keys
/oncemodeDisplay or set the once-per-boot ticket flag
/statusDisplay current KDC status
tgtDisplay tgt credentials
ParameterDescription
tgt Name of the target for the ticket operation
/EXPORTExport the specified ticket to a file
/PURGEPurge the specified ticket
/f Filename to export the tickets to
/eExport tickets to ASCII instead of binary format
/P Old password for changing password
/N New password for changing password
/EEncrypt the renewed ticket
/PPlain text the renewed ticket
/referer Target name to show referrer for
/verifyTicket to verify
/deleteTicket to delete
/setpassTarget and old/new password for changing password
/showkeysDisplay keys for a ticket
/cacheOperations related to the tickets cache
Terminal window
klist

This command will display the current Kerberos ticket information.

Terminal window
klist purge

Use this command to purge all Kerberos tickets from the cache.

Terminal window
klist -R

Refreshes the ticket information by requesting a new TGT (Ticket Granting Ticket).

Display Ticket Information for a Specific Ticket File

Section titled “Display Ticket Information for a Specific Ticket File”
Terminal window
klist -c ticket_file.CC

Displays the ticket information for a specific Kerberos ticket file.

Terminal window
klist -f

Lists all tickets in the cache including client principal, server principal, issue time, and expiry time.

Terminal window
klist -R -i <ticket_index>

Renews a specific ticket in the cache by specifying the index of the ticket.

Terminal window
klist -v

Displays the ticket information verbosely, providing additional details about the tickets in the cache.

To use the klist command in Windows, execute the following command:

Terminal window
klist

How can I display all the cached Kerberos tickets with klist?

Section titled “How can I display all the cached Kerberos tickets with klist?”

To display all the cached Kerberos tickets using klist, use the following command:

Terminal window
klist tickets

How can I purge all cached Kerberos tickets using klist?

Section titled “How can I purge all cached Kerberos tickets using klist?”

To purge all cached Kerberos tickets with klist, run the following command:

Terminal window
klist purge

How can I list the current credentials and ticket-granting tickets with klist?

Section titled “How can I list the current credentials and ticket-granting tickets with klist?”

To list the current credentials and ticket-granting tickets using klist, use the command:

Terminal window
klist cred

How do I force klist to list all credentials and tickets, including invalid ones?

Section titled “How do I force klist to list all credentials and tickets, including invalid ones?”

To force klist to list all credentials and tickets, including invalid ones, use the command:

Terminal window
klist tgt /all

How can I show detailed information about all tickets, including their flags and encryption types, with klist?

Section titled “How can I show detailed information about all tickets, including their flags and encryption types, with klist?”

To show detailed information about all tickets, including their flags and encryption types, using klist, run:

Terminal window
klist tgt /verbose
  • View the currently cached Kerberos tickets
  • Renew Kerberos tickets
  • Purge (delete) Kerberos tickets
  • List Kerberos tickets for a specific user
  • Display detailed information about Kerberos tickets