Skip to content

Instantly share code, notes, and snippets.

View pmcfarland's full-sized avatar

Patrick McFarland pmcfarland

View GitHub Profile
@pmcfarland
pmcfarland / delete_cached_msoffice_creds.ps1
Created January 22, 2018 21:22
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:","")}}

Keybase proof

I hereby claim:

  • I am pmcfarland on github.
  • I am pmcfarland (https://keybase.io/pmcfarland) on keybase.
  • I have a public key whose fingerprint is C63F 1B43 A2EE 4C38 8FDF 29FA 43EE C5DF 4FCB E0DA

To claim this, I am signing this object: