Skip to content

Instantly share code, notes, and snippets.

@pmcfarland
Created January 22, 2018 21:22
Show Gist options
  • Save pmcfarland/89669799a3a1a772510d605214d24e9c to your computer and use it in GitHub Desktop.
Save pmcfarland/89669799a3a1a772510d605214d24e9c to your computer and use it in GitHub Desktop.
Delete Cached Microsoft Office Credentials
#Ocasionally Outlook will continually ask for your username and password even while working normally
#This little one liner will purge the cached credentials from Windows Credential manager for Office 365/2016
#Directions:
# 1) Close Outlook
# 2) Run PowerShell as Administrator
# 3) Paste in the command below, once it completes re-open Outlook and it should return to normal.
# NOTE: Outlook may ask you for your password one last time
cmdkey /list | ForEach-Object{if($_ -like "*MicrosoftOffice16_Data*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}
@pmcfarland
Copy link
Author

Uploaded script for purging all cached Microsoft Office 365 cached credentials

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