Created
January 22, 2018 21:22
-
-
Save pmcfarland/89669799a3a1a772510d605214d24e9c to your computer and use it in GitHub Desktop.
Delete Cached Microsoft Office Credentials
This file contains 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
#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:","")}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uploaded script for purging all cached Microsoft Office 365 cached credentials