Solved

Automate Clearing Outlook Cache for clients migrated from Exchange 2003 to Exchange 2010

Posted on 2014-12-11
17
107 Views
Last Modified: 2014-12-17
My company is in the process of migrating users from exchange 2003 to exchange 2010 in a different forest.

There is a 2 way trust between both forest so they will retain the same email address.

The question:

How can we automate clearing cache on outlook for the users?

Is there a script or mechanism we can fire to automate this?

we want to automate clearing cache to enhance migration performance as well as avoid the clients pointing to any old exchange settings after the migration.

please advise

Many thanks,

T
0
Comment
Question by:tobe1424
  • 12
  • 5
17 Comments
 

Author Comment

by:tobe1424
ID: 40494996
I believe outlook's cache is stored in the .ost file

how can we automate deleting this cache / .ost file across an entire network of PC's?
0
 

Author Comment

by:tobe1424
ID: 40495059
can i create a batch file to fun at startup or login that deletes *.ost from the directory ?
0
 
LVL 24

Assisted Solution

by:VB ITS
VB ITS earned 500 total points
ID: 40495065
This all depends on the version of Outlook installed on the workstations. Starting from Outlook 2010, the AutoComplete cache is now stored as a hidden message in the mailbox store. Previous versions of Outlook used the .NK2 file format.

Do you want to remove the users' entire AutoComplete cache, including external email addresses or do you just want to get rid of internal email addresses from the cache?

You can download and use NK2Edit to modify the cache directly. Despite it's name, it does work with the AutoComplete cache for Outlook 2010 and 2013 as well.

If you want to automate this you can look at using scripts with it NK2Edit, however you may need to purchase the commercial license depending on how you want to script it. More information can be found here: http://www.nirsoft.net/utils/edit_nk2_script.html
0
 

Author Comment

by:tobe1424
ID: 40495080
Thanks for the input

We are running Outlook 2010 on our clients

I believe we want to simply delete the internal email from cache. We are not too concerned with the autocomplete as this shouldn't cause any impact with respect to migration.
0
 

Author Comment

by:tobe1424
ID: 40495101
it looks like this product is tailored to autocomplete cache
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40495112
Just to confirm, you want to remove internal email addresses that appear when users start typing in another internal user's name in the To: field in a new email message, correct? If so then this is the AutoComplete cache in action.
Outlook-2010-AutoComplete-Cache.png
0
 

Author Comment

by:tobe1424
ID: 40495128
Thanks again for the feedback however, no.

We want to delete the cache from "exchange cache mode" i believe this is the cache used to sync calendar, mailbox and contacts with exchange which sits inside the .ost file

I have 3000 users. I was thinking about running a start up/ login script that deletes the .ost file in their user profile directory.

Windows 7 example : del /q /s  C:\Users\username\AppData\Local\Microsoft\Outlook\*.ost

If this is a good practice, I am now wondering how to specify this file to be deleted or customizing a script to delete this file for 3000 pc/clients
0
 

Author Comment

by:tobe1424
ID: 40495147
Windows 7 example : del /q /s  C:\Users\%USERPROFILE%\AppData\Local\Microsoft\Outlook\*.ost

Would this work? the userprofile should point to each users local profile/path ?
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 24

Expert Comment

by:VB ITS
ID: 40495161
Oh! So sorry, didn't realise that you were talking about Cached mode for Exchange.

Can't say I would recommend deleting the .OST file as this could cause a lot of unnecessary network traffic if you have 3000 users re-downloading their emails from the Exchange server(s) at the same time. You could look at using the logon script to target users in specific OUs or security groups but you'll need to obviously do this in stages.

That being said, if you still want to use the login script method you need to use the %username% variable in the above command, so it would look like this:
del /q /s  C:\Users\%username%\AppData\Local\Microsoft\Outlook\*.ost
0
 

Author Comment

by:tobe1424
ID: 40496793
thanks so much.

The final script I ended up running was

del /q /s  %username%\AppData\Local\Microsoft\Outlook\*.ost

Without specifying c:\Users as this would generate an error when executed.

cheers vbits
0
 

Author Comment

by:tobe1424
ID: 40497314
REWIND !!...

I just confirmed with my manager that he want the NK2 / autocomplete cache to be cleared :: facepalm::
0
 

Assisted Solution

by:tobe1424
tobe1424 earned 0 total points
ID: 40497338
I found this .msi

http://support.microsoft.com/kb/287623/EN-US

however, I wonder how we can automate this since it asks to check the license flag during installation
0
 

Accepted Solution

by:
tobe1424 earned 0 total points
ID: 40497406
I ran the batch below and it works fine. Thanks again.


msiexec.exe /q  /i \\UNC_PATH_TO_FILE\MicrosoftFixit50586.msi
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40497847
Good stuff! Sorry, just only managed to get access to a computer.
I just confirmed with my manager that he want the NK2 / autocomplete cache to be cleared :: facepalm::
I think you're going to end up with quite a few displeased users but that's for your manager to deal with :)
0
 

Author Comment

by:tobe1424
ID: 40498512
I suppose :)

Any how, what do you think would be best practice ?
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40498782
I personally think it's best to use a third-party tool such as NK2Edit to remove any internal addresses if your concern is references to the old server, as these are stored in the AutoComplete cache differently compared to external addresses. This can be impractical for 3000 clients though without some form of scripting.
0
 

Author Closing Comment

by:tobe1424
ID: 40504372
I did some research and found this in home solutions that is free. However, VB ITS's solution would have also worked but it wasn't free.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

757 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

23 Experts available now in Live!

Get 1:1 Help Now