We help IT Professionals succeed at work.

Use a batch file to recreate outlook.ost

CLER
CLER asked
on
1,292 Views
Last Modified: 2008-08-15
Brief summary of my situation: We recently had a server issue that forced our outlook.ost files on all Outlook 2003 users machines to become out of sync, in order to correct the issue, we turned off cached exchange mode, but at a loss of functionality. So we are trying to toggle cached exchange mode back on, but users .ost files are still out of date, and not updating.

We've found that deletion of the outlook.ost will just prompt Outlook to redownload it from the server, thus effectively updating their .ost file.

Question: How can we now push this as a fix (and also re-enable cached exchange mode) from a batch file type solution that we could push out over night?

Process would be something like taskkill /im outlook.exe (to shutdown outlook in case it's left running), then deleting the .ost file (i'm confused here, since each user has a different profile name, is it possible to create a universal batch file for this?), changing the cached exchange mode setting if possible?

Also, since most users do not have administrative privileges, would that present a problem?
Comment
Watch Question

Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
A-ha! That's what that piece was... I knew it was %user or %current user or something along those lines, thanks for the fast response.

Any further help is MUCH appreciated!
Consulente Informatico
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Lee W, MVPTechnology and Business Process Advisor
CERTIFIED EXPERT
Most Valuable Expert 2013

Commented:
type "set" at a command prompt for a list of all environment variables you can reference.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.