Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
J. Riley Castine authored Jul 8, 2020
1 parent 13a0c0d commit 61263db
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# ClearCreds
DOS / CMD batch file to remove all 'hidden' credentials from a Windows 7, 8 and/or 10 machine
DOS / CMD batch file to remove all 'hidden' credentials from a Windows 7, 8 and/or 10 machine as well as Windows Sever up to and including 2019.

This uses the inbuilt cmdkey tool (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey) to clear out all saved credentials that are NOT showing in the Windows Credential Manager.
Saved a password in a Windows dialog box and it's not showing up in Credential Manager? Have issues with Outlook not allowing authentication and your account locking out? This may be due to a saved credential in Windows. The CMDKEY tool allows you to see all the active credentials for your Windows system.

You simply run this script from the logged in user's desktop. Please note, do NOT run as administrator, this needs to run as the locally logged in user and does not require admin rights to run.
This batch file will delete all the saved credentials for the logged in user. Using the cmdkey tool (https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cmdkey), we create a list of all the credentials, then create a second list of the credential tokens and delete them out.

You simply run this script from the logged in user's desktop. DO NOT run as administrator, this needs to run as the locally logged in user. Local admin rights are not required for this script to clean up credentials.

If you are a local machine admin or AD domain admin, this can be run to clear out your credentials from a server or workstation so as to not leave a credentialed session behind that could be exploited.

0 comments on commit 61263db

Please sign in to comment.