Skip to content

Instantly share code, notes, and snippets.

@fmartins-andre
Created June 11, 2021 15:17
Show Gist options
  • Save fmartins-andre/0e52da068eda60210eef4f7c761a4b73 to your computer and use it in GitHub Desktop.
Save fmartins-andre/0e52da068eda60210eef4f7c761a4b73 to your computer and use it in GitHub Desktop.
Clean stored credentials from Windows Credential Manager via PowerShell.
cmdkey /list | ForEach-Object{if($_ -like "*Destino:*"){ cmdkey /del:($_ -replace " ","" -replace "Destino:","")}}
cmdkey /list | ForEach-Object{if($_ -like "*Target:*"){ cmdkey /del:($_ -replace " ","" -replace "Target:","")}}
@fmartins-andre
Copy link
Author

The first command line is for results in portuguese, the second in english.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment