If you have built up a list of Windows credentials that you want to clear all at once, instead of having to remove them one by one try this command:
cmdkey /list | ForEach-Object {if ($_ -like “Target:“) {cmdkey /del:($_ -replace ‘^.+=’, ”)}}
If you have built up a list of Windows credentials that you want to clear all at once, instead of having to remove them one by one try this command:
cmdkey /list | ForEach-Object {if ($_ -like “Target:“) {cmdkey /del:($_ -replace ‘^.+=’, ”)}}