How to Export Nk2 File From Outlook 2007

Last reviewed on February 10, 2021   141 Comments

Applies to: Outlook 2019 (Win), Outlook 2016 (Win), Outlook 2013, Outlook 2010

One of my email contacts has a new email address as their company changed their domain name. I have deleted and re-entered her correct email address about half a dozen times in the address book and yet my PC still thinks I am sending her emails to her old domain.com instead of her new domain.com. When I entered her name it defaults to the "olddomain.com" address even though it is nowhere to be found on my PC. I have to select her "newdomain.com" address from the address book for it to work. Has anyone experienced where Outlook is keeping this old email address info? How can I can purge it?

This is an all too common experience for many users.

Use the arrow key to select the incorrect address and press the Delete key.

You can clear the entire autocomplete file: in older versions you need to delete the *.NK2 file from your hard drive, while Outlook 2010 and newer has a button to clear the Autocomplete cache in Options (screenshot below).

Outlook 2010 and newer

Beginning with Outlook 2010, Outlook does not use the NK2 file; it stores the autocomplete cache in the mailbox or data file and caches the addresses in an autocomplete stream at C:\Users\%username%\AppData\Local\Microsoft\Outlook\RoamCache . You can type or paste %localappdata%\Microsoft\Outlook\RoamCache in the address bar of Windows Explorer then press Enter to open the folder location where the cache is stored in a file named Stream_Autocomplete_0_[long GUID].dat.

Clear the autocomplete cache using the File, Options, Mail, Empty Auto-complete list button.
Empty Autocomplete cache
You can also use the /cleanautocompletecache switch to clear the cache.

Close Outlook. Press Windows key + R to open the Run command and type or paste the following line and press enter to start Outlook. (There is a space before /.)

outlook.exe /cleanautocompletecache

If addresses are not saving in the auto-complete list between Outlook sessions and clearing the cache doesn't fix the problem, you may need to delete the RoamCache file. Instructions are at Outlook doesn't save Autocomplete.

See Suggested Contacts and Auto-Complete Lists to learn more about Outlook 2010's autocomplete cache and suggested contacts.

Outlook 2010 also creates a contact for people you send mail to, as insurance if the autocomplete cache becomes corrupt. Look for these contacts in the Suggested Contacts folder. This unpopular feature was removed from Outlook beginning with Outlook 2013.

Clear the NK2 file in Outlook 2007

The nickname files (.nk2) used by Outlook 2007 (and 2003) is found at C:\Documents and Settings\%username%\Application Data\Microsoft\Outlook if you are using Windows XP/2000 or C:\Users\%username%\Application Data\Microsoft\Outlook.

You can access this folder by pasting %USERPROFILE%\Application Data\Microsoft\Outlook in the Address bar of Windows Explorer.

Close Outlook then delete or rename the *.NK2 file. When you restart Outlook it will create a new, empty NK2 file.

Nickname cache is empty

We use Outlook and my users aren't very good at adding email addresses to the Contacts folder and rely heavily on the autocomplete cache, but it gets replaced often. Why does it seem so fragile?

If the users are losing addresses of people they recently replied to (but not older addresses), it's because Outlook crashes or does not close properly and the changes are not written to the NK2 file. The existing *.NK2 shouldn't be replaced by a clean *.NK2 if this happens, but new addresses you've sent new mail to or replied to won't be saved to the file. Less used addresses are replaced by new addresses when the NK2 contains 1000 addresses in Outlook 2003 or 2000 address if using Outlook 2007.

If all addresses disappear, it means something is corrupt and Outlook is replacing the NK2 with a new, clean one.

If you're using the autocomplete cache as your address book because it's too much effort to right click on an address and save it as a new Contact, you should use a utility that creates contacts from all addresses you reply to, as the autocomplete cache is not a good substitute for contacts.

Import addresses from NK2

When you upgrade from Outlook 2007 and earlier in-place and use the same profile, Outlook 2010 or 2013 should import the NK2 you used with your previous Outlook version automatically on the first run. If Outlook didn't import the NK2 automatically, or you are using a new computer and didn't think to move the NK2 file, or you made a new profile, you can import the NK2 after the first run by using the ImportNK2 switch.

When you import the NK2, the contents of the file are merged into the existing nickname cache that is currently stored in your mailbox.

To import .nk2 files into Outlook 2010 and newer, follow these steps:

  1. Make sure that the .nk2 file is in the following folder:
    %appdata%\Microsoft\Outlook
    The .nk2 file must have the same name as your current Outlook profile. (By default, the profile name is "Outlook.")
  2. Press Windows Key + R to open the Run dialog.
  3. In the Open box, type (or paste) outlook.exe /importnk2, and click OK to import the NK2 into your profile.

The .nk2 file is renamed with a .old file name extension on the first start of Outlook 2010. If you need to re-import the .nk2 file, remove the .old file name extension.

Use the nicknames with new profiles

If you create a new profile you can copy the NK2 file used by your old profile. You'll need to rename it so it matches the name of your new profile.

How to clear names from the cache

To remove single addresses, select the name using the arrow keys then press Delete. In Outlook 2010, you can also click the x beside the name to delete it or use the Backspace key.

To remove all of the addresses from the autocomplete cache in Outlook 2007 or 2003, either delete the NK2 file (at %USERPROFILE%\Application Data\Microsoft\Outlook ) or go to Tools, Options, Email Options, Advanced Email Options and deselect the option to suggest names near the bottom of the dialog.

In Outlook 2010, clear the cache using the File, Options, Mail dialog, Empty Auto-complete List button.

Remove an Address from the Auto-Complete Cache Tutorial

Auto-Complete Cache Editing Tools

Autocomplete List Cache Size

There is a limit of 1000 names on the autocomplete cache in Outlook. The limit can be raised in Outlook by use of a registry setting. Note: this value will not exist by default and is only needed if you want to change the limit.

Outlook 2016, 2019, 365:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoNameCheck

Outlook 2013:
HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Outlook\AutoNameCheck

Outlook 2010:
HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Outlook\AutoNameCheck

Outlook 2007:
HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\AutoNameCheck

Outlook 2003:
HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\AutoNameCheck

Outlook 2002:
HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\AutoNameCheck

DWORD: MaxNicknames
Value: Between 1 and 2000, in decimal

Do It For Me

The following registry files will change the registry key to 2000 entries. Download the file for your version of Outlook and double click to run.

Outlook 2003 Outlook 2007 Outlook 2010

How to Export Nk2 File From Outlook 2007

Source: https://www.slipstick.com/outlook/email/understanding-outlooks-autocomplete-cache-nk2/

0 Response to "How to Export Nk2 File From Outlook 2007"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel