Last active
November 22, 2024 10:05
-
-
Save codekoenig/97d1bd9d6a4b04f6fa50b1f0813b125c to your computer and use it in GitHub Desktop.
Delete all VSCode credentials in Windows Credentials Manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
VSCode has a bug where it fills up the Windows Credentials Manager with credentials up to the point where no new credentials can be added. | |
This leads to multiple issues, one of them for example that VSCode itself cannot store any more credentials there. | |
You'll notice this when you have to sign in to your Microsoft or Github account in VSCode after each restart. | |
#> | |
# List all VSCode entries in Windows Credential Manager | |
cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*vscodevscode.microsoft-*"){echo $_.substring(30)}} | |
# Delete all VSCode credential entries in Windows Credential Manager | |
cmdkey /list | ForEach-Object{if($_ -like "*Target:*" -and $_ -like "*vscodevscode.microsoft-*"){iex "& cmdkey /delete: $($_.substring(33))"}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SQL Server Management Studio stopped storing the passwords due to this bug. This worked like a charm, thanks very much!