Populating Outlook 2013 auto-complete addresses via PowerShell

Hello,

I would like to use PowerShell to add auto-complete e-mail addressees to Microsoft Office Outlook 2013. My understanding is that since Outlook 2010 was released, the NK2 file has been retired in favor of integrating the auto-complete addresses with the PST file (see link below). With that in mind, how can I manipulate the PST file to accommodate the auto-completion? Is there any documentation on the PST file structure that would allow me to inject this information into an existing PST? If a user has multiple PST files, how do you know which one contains the auto-complete entries are they aggregated?

http://social.technet.microsoft.com/Forums/office/en-US/f1edb3db-e28c-404b-8817-a3c001555b2d/missing-nk2-file

Cheers,

Trevor Su

December 2nd, 2013 4:27pm

It looks like the autocomplete file sites under $env:UserProfile\AppData\Local\Microsoft\Outlook\RoamCache\Stream_Autocomplete_**********.dat (where the asterisks represent a randomized string). Does anyone know the format of this file, and how to manipulate it?
Free Windows Admin Tool Kit Click here and download it now
December 3rd, 2013 6:14am

"The NK2 file has been retired in favor of integrating the auto-complete addresses with the PST file"

- I think this discription is not exactly.

In fact, Outlook 2010/2013 reads the autocomplete stream from a message in the Associated Contents table of the Inbox of the mail accounts delivery store. (In another word, it is stored in mailbox site but is not on local). This hidden message has a message class and subject of IPM.Configuration.Autocomplete. The autocomplete stream is stored on this message in the PR_ROAMING_BINARYSTREAM property (PidTagRoamingBinary Canonical Property).

Go back to your quesion, the autocomplete data, whatever belongs which mail accounts delivery store, is temporarily cached in an autocomplete .dat file located in %USERPROFILE%\AppData\Local\Microsoft\Outlook\RoamCache.

More Reference:

http://msdn.microsoft.com/en-us/library/office/ff625288.aspx

An useful tool - NK2Edit to

http://www.nirsoft.net/utils/outlook_nk2_edit.html

Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

Cheers,
Tony Chen
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please contact tnmff@microsoft.com.

December 4th, 2013 9:11am

Hi,

Just checking in to see if the information was helpful. Please let us know if you would like further assistance.

Cheers,
Tony Chen
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please contact tnmff@microsoft.com.

Free Windows Admin Tool Kit Click here and download it now
December 8th, 2013 7:22pm

Hi,

I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer

Cheers,
Tony Chen
Forum Support
________________________________________
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please contact tnmff@microsoft.com.

December 11th, 2013 5:50am

This is the question I want to know. I am not satisfied with how I cannot add emails to autocomplete manually. At least if I could modify these stream dat files, I could attain what I am after. How do we do this since it is not plain-text and no third party options seem available!?
Free Windows Admin Tool Kit Click here and download it now
February 24th, 2015 3:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics