Solved

outlook 2010 .nk2 or rename script

Posted on 2011-09-13
3
916 Views
Last Modified: 2012-05-12
So i found the following information added as code saying about nk2 files not existing anymore, bla bla bla.  Fine.

Now my task was to backup our users .nk2 file on logoff and restore on login. We don't use roaming profiles and will not. But I was hoping to make outlook act like it was roaming, at least the contacts dropdown.  Now if this was still using .nk2 files it would be easy.

But now with random GUID's in the filename, how can I do this.  When a user logs onto anther PC with outlook, the file is created but with a diffrent filename. So i can't just replace the DAT file.


Any idea's or can someone write a script to find the current name and then copy/rename the backup file as that name. I guess thats the answer..
The Outlook 2003/2007 default NK2 file location is the same in Windows 7 x64 and x86 -- C:\Users\{username}\AppData\Roaming\Microsoft\Outlook\zzzzzzz.NK2 (z = Outlook profile name). This also applies to Vista and Server 2008.
 
The Outlook 2010 NK2 file is actually a DAT file and is located, on the above operating systems, at C:\Users\{username}\AppData\Local\Microsoft\Outlook\RoamCache\Stream_Autocomplete_y_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.dat (y = file index, x = random 16-byte key in hex form).
 
 
 
If you haven't unchecked 'Hide extensions for known file types' under Tools > Folder Options > View, then the file will just be called "Outlook" or "Default" (whatever your Outlook profile is named), instead of Outlook.NK2 or Default.NK2. Also, Windows 7 classifies it as an "Office Data File" in the 'Type' column.
 
If this file is not present, Outlook will create a new one when you open the program. Hope this helps!

Open in new window

0
Comment
Question by:myhc
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
tharstern earned 500 total points
ID: 36533252
The nk2 file gets imported once in Outlook 2010, then is always there for that user, no matter where they log on from, as it is stored in their mailbox in exchange.



0
 
LVL 7

Author Comment

by:myhc
ID: 36534857
tharstern,

Thank you for that information. I have tested and you are kinda correct. Just a little note, If you are running an Exchange 2003 server the data is not imported into the server.

Only when running Exchange 2010 or older i guess (might work with exchange 2007 but we missed this version)

We are moving from 2003 -> 2010 so we can wait.

Thanks for saving me some time...
0
 
LVL 7

Author Closing Comment

by:myhc
ID: 36534859
Exchange 2010 and above
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

My experience with Windows 10 over a one year period and suggestions for smooth operation
Outlook Free & Paid Tools
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now