Need Find and Replace Batch file to overwrite .MST files located in multiple locations
Posted on 2012-03-29
I need a batch file that finds a file on a user's PC and replaces it with a different file with the same name. This would be run in a login script.
I have an organization that has a large number of legacy PC's with Office 2003. The staff utilized the Office Customization Tool to create user's Outlook profiles when they logged onto a PC for the first time.
The MST files has the Outlook profile point to a legacy Exchange 2003 server which needs to be decommissioned. If the legacy Exchange 2003 server is decommissioned and a new user logs onto a machine with the old MST file on it they will be pointed to an Exchange server that no longer exists.
I need to replace the incorrect MST file with the new MST file that points the profile to the proper server.
I cannot use (copy \\server\file share\file.mst c:\file.mst /y) due to the mst files residing under MSOCache and having different locations. The batch file will need to be able to find the MST and replace it with the updated version.