Skip to content

Instantly share code, notes, and snippets.

@TwitchBronBron
Created February 27, 2019 13:13
Show Gist options
  • Save TwitchBronBron/d692073e4f95967465f2dcee2f377aa8 to your computer and use it in GitHub Desktop.
Save TwitchBronBron/d692073e4f95967465f2dcee2f377aa8 to your computer and use it in GitHub Desktop.
A windows script to clear all windows credentials (uses powershell internally)
powershell -Command "cmdkey /list | ForEach-Object{if($_ -like '*Target:*' -and $_ -like '*'){cmdkey /del:($_ -replace ' ','' -replace 'Target:','')}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment