question

nonenone-7982 avatar image
0 Votes"
nonenone-7982 asked JadeLiang-MSFT commented

outlook copy profile to new computer almost works

I created a some batch script to copy my outlook profile like this:

mkdir p:\settings-outlook
reg export "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook" "p:\settings-outlook\outlook-config.reg"

xcopy %appdata%..\Local\Microsoft\Outlook*.ost p:\settings-outlook /e

mkdir p:\settings-outlook\signatures
xcopy %appdata%\Microsoft\Signatures* p:\settings-outlook\signatures /e


then I did some find and replace in registry file for changing the user from user.Domain to Test

Everything is working fine when I do not work with a cache file, but when I enable the cache file (this .ost) it is still referring to the old user.Domain location.

The registry file does not have this string, so it must be encoded somewhere.

Anyone knows where this is encoded in the registry?

office-outlook-itpro
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

JadeLiang-MSFT avatar image
0 Votes"
JadeLiang-MSFT answered JadeLiang-MSFT commented

Hi @nonenone-7982,

Please understand here we mainly focus on general issues about Outlook desktop client, I know little about script. According to my experience and tests, it may casue many errors when we copy the Outlook profile register to a new location, such as cannot find the location of Outlook data file etc. and I haven't find any relevant settings that could change the original location of data files.

So if you need to switch to a new computer and keep some settings there, it's recommended to export and import relevant file to the new client directly and recreate a new Outlook profile instead of copy the profile, which may be more safe and simple, for your reference, here is an article that mentioned the location of some relevant file and settings:

Find and transfer Outlook data files from one computer to another

Hope that would be helpful to you.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Where should I ask for outlook registry settings then? On this MSDN forum this was much clearer.

There are so many settings like; linking signatures to accounts, fonts, reply, stationary etc and I am using multiple pop to be able to have different outgoing mail. Recreating such things not really an option in 2021.

Furthermore if you read my post, you would know that everything is working as it should be (dark theme is not copied, but most is ok)

The only problem I have is that somewhere this ost path is encoded in the registry. I need to know where so I can delete this key. (and hope it will prompt for creating a new path).

0 Votes 0 ·

Hi,

Thanks for your reply, I do research a lot about it ,but still couldn't find the specific key that determines the location of the default data file.

If you still need to copy the profile, I try to research a lot about data file location and found some related articles that mentioned we could move/change the data file location via registry and other ways, as a suggestion, you could try to change the location of data file and then perform your test to check if it has any difference after that, for your reference:

Moving an Exchange Offline Data File (*.ost)
(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.)



0 Votes 0 ·

I also saw that page :) I even have this ForceOSTPath already, but it still prefers this old 'hard coded' location.
Of course I can recreate the path and be done with it, but I thought maybe there is just a reg key I can delete and the ost will be created in the ForceOSTPath automatically.

The reason why I am asking here, is that I thought ms people are here and can ask developers of outlook.

0 Votes 0 ·
Show more comments