How-to: Clear cached contacts from Microsoft Outlook

1 min read

A long time ago we needed a script to remove the cached contacts in Microsoft Outlook. After some research we found that these were stored in a NK2 file in the user profile directory. To run the script please close Outlook and create a new batch file (text file with the extension of .bat), or download the file below.

Please not this will create a backup of the NK2 file so everything can be reverted.

Terminal window
@ECHO off
TITLE Clear the nickname automatic completion caches in Outlook
CLS
ECHO Clearing the nickname automatic completion caches in OutLook...
ECHO Created by Blake Niemyjski (https://blakeniemyjski.com)
ECHO.
CD %userprofile%\Application Data\Microsoft\Outlook
RENAME *.NK2 *.NK2.BAK
ECHO.
ECHO The operation has now completed.
ECHO.
PAUSE
EXIT
Blake Niemyjski

Thanks for reading! Feel free to check out more posts or browse by category, and reach out via the social links below.


More Posts

Comments