Skip to content

Instantly share code, notes, and snippets.

@snowyyd
Last active September 20, 2024 02:27
Show Gist options
  • Select an option

  • Save snowyyd/69aafc0c8b71354e5f726ea9887f6654 to your computer and use it in GitHub Desktop.

Select an option

Save snowyyd/69aafc0c8b71354e5f726ea9887f6654 to your computer and use it in GitHub Desktop.
Clear all Adobe App credentials from Windows Credential Manager
# Inspired on https://community.adobe.com/t5/download-install-discussions/getting-a-long-list-of-quot-adobe-app-info-quot-generic-credentials/td-p/10189222
# Usage: add this script to your PowerShell profile and run "ClearAdobeCredentials". "Adobe User" credentials will not be removed.
<# Commands explanation:
cmdkey /list > This will list all your saved credentials
Select-String -Pattern "Adobe App" > Show only credentials that match "Adobe App"
-replace "^ *[A-Za-z]+:? (.*)", "`"`$1`"") > Regex that removes " Target:" and add quotes around the credential
% { cmdkey /delete:$_ } > This will run "cmdkey /delete" for each matching credential
#>
function ClearAdobeCredentials { ((cmdkey /list | Select-String -Pattern "Adobe App") -replace "^ *[A-Za-z]+:? (.*)", "`"`$1`"") | % { cmdkey /delete:$_ } }
@Atha1Kishan
Copy link

I have tried using the following, and it worked for me.

  1. Open Powershell and run the following commands
    • The following will remove Adobe credentials
      cmdkey /list | Select-String "Adobe" -SimpleMatch | ForEach-Object { cmdkey /delete:($_ -replace "^.+?Target: ","") }

    • The Following will remove Microsoft credentials
      cmdkey /list | Select-String "Microsoft" -SimpleMatch | ForEach-Object { cmdkey /delete:($_ -replace "^.+?Target: ","") }

@snowyyd
Copy link
Author

snowyyd commented Jul 25, 2024

Hello @Atha1Kishan.

The problem with your method is that “Target:” would only match if your OS is set to English. For example, in Spanish the word is "Destino".

@tehmessiah75
Copy link

How do you stop Adobe from creating multiple credentials in credential manager?

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