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

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
tobe1424Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

tobe1424Author Commented:
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
tobe1424Author Commented:
can i create a batch file to fun at startup or login that deletes *.ost from the directory ?
0
VB ITSSpecialist ConsultantCommented:
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
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

tobe1424Author Commented:
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
tobe1424Author Commented:
it looks like this product is tailored to autocomplete cache
0
VB ITSSpecialist ConsultantCommented:
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
tobe1424Author Commented:
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
tobe1424Author Commented:
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
VB ITSSpecialist ConsultantCommented:
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
tobe1424Author Commented:
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
tobe1424Author Commented:
REWIND !!...

I just confirmed with my manager that he want the NK2 / autocomplete cache to be cleared :: facepalm::
0
tobe1424Author Commented:
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
tobe1424Author Commented:
I ran the batch below and it works fine. Thanks again.


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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
VB ITSSpecialist ConsultantCommented:
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
tobe1424Author Commented:
I suppose :)

Any how, what do you think would be best practice ?
0
VB ITSSpecialist ConsultantCommented:
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
tobe1424Author Commented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Exchange

From novice to tech pro — start learning today.