Clear Cached Credentials/Passwords Stored in Windows Credential Manager

Almost all organisations have Password Expiry set via Password Policy in the Domain. They also have an Account Lockout Policy implemented.Almost all organisations have users who save and cache their passwords, with the hope that once their passwords are saved, they wont be prompt
4.4 Star
21,054 times
Add to favorites
Active Directory
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Not work
    1 Posts | Last post October 10, 2019
    • Hi I tested in Windows 7 but it didn't work out. It runs and stays in background but never done it should.
  • single line in PowerShell with same effect
    1 Posts | Last post May 31, 2019
    • this line on PS works for me and clear everything in ADAL
      cmdkey /list | where {$_ -match 'LegacyGeneric'} | foreach { cmdkey /delete "$($_.split()[-1])" }
  • Does not clear credentials from Generic Credentials and other item
    1 Posts | Last post April 09, 2019
    • Hey Monimoy Sanyal,
      This is wonderful tool but it does not clear credentials from Generic Credentials and other items from Credentials manager of Windows 10 machine? Can it be added to script? 
  • Generic credentials
    1 Posts | Last post January 17, 2019
    • This clears some but not everything, I still see a heap of 'Generic Credentials'. Do I need to do something else to have these removed?
  • I can't get this to work on Windows 10
    1 Posts | Last post January 17, 2019
    • I've tried using the command line as well as just running the app and can't get it to clear windows 10 (windows credentials only).
  • Will this do all credentials on all profiles
    1 Posts | Last post October 15, 2018
    • Hi, will this do all credentials on all profiles on the machine. win10
  • Switch to run in silent mode
    1 Posts | Last post September 14, 2018
    • Hi,
      Thank you for sharing this, it works fine. I have ran this Wiper.exe "-IEonly" using GPO logon script, but they only problem is users can see the gui bit then they logon, is there another switch to make it run in the background? For e.g. Wiper.exe "-IEonly" -s or /s?
  • I can run it through task sheduler
    4 Posts | Last post August 22, 2018
    • I can run it through task sheduler, it doesnt delete credentials but successfully running and endinf
    • *can't
    • but i found a better way -__-
      cmdkey.exe /list > "%TEMP%\List.txt"
      findstr.exe Target "%TEMP%\List.txt" > "%TEMP%\tokensonly.txt"
      FOR /F "tokens=1,2 delims= " %%G IN (%TEMP%\tokensonly.txt) DO cmdkey.exe /delete:%%H
      del "%TEMP%\list.txt","%TEMP%\tokensonly.txt" /s /f /q
    • I tested this code on Windows 10 1803 with Cumulative updates for August 2018.
      It works as a NON-ADMIN and with the Credential Manager Service Disabled for the logged on user ONLY.
      I logged on as a non-admin user and ran Credential Manager App, and verified had 1 generic credential.
      I Left the app open and opened a DOS command prompt as admin using an admin credential and stopped the Credential service.
      Ran the batch file with the code as the user, it reported sucess.
      F5 the credential manager app and the listed credential went away!
      So to implement this fully we are using Group Policy to disable the Credential manager service and the running this batch file with SCCM under the users context, only when the user is logged on, silently.
      One caveat, if your users are restricted from using the DOS command prompt this probably will not work, these are DOS commands which invoke a cmd.exe process.
  • Does not work
    1 Posts | Last post March 21, 2018
    • Tried in CMD as administrator as well as GUI as administrator both failed. In Gui, it just hangs and says it's working... but does nothing and in CMD it just runs in the background and does nothing. 
  • Can't get this to work
    1 Posts | Last post January 19, 2018
    • Windows 10 1709 Enterprise.  Run the EXE as admin or with admin account on pc.  Select clear OS credentials.  Says working but it just hangs and does nothing.  Broken.
1 - 10 of 23 Items