Outlook 365 ignores ForceOSTpath - how to relocate it?

Not open for further replies.


Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
Applied ForceOSTpath before changing from POP3 to IMAP
Initially... indeed the .ost file was located in a folder that has been defined by me (N:\Outlook)
Note: "N" is not a network drive in this case.

I just checked but Outlook seemed to have decided to relocate the .ost file to C: again, ignoring the registry patch.

How to solve this?

Maybe start from scratch?
Maybe remove account, set the Outlook.pst as default, try to export rules (can they be imported into Outlook 365 via IMAP?)
reboot and create IMAP account again?

IMAP... deep sigh..


SnagIt-02122018 090132.png


found another thread titled "Moving .OST file location unsuccessful!"
Moving .OST file location unsuccessful!

will proceed likewise, see what happens.
Hi Deep,

Could you please help me with some details?
1. May I know how many email accounts are configured in Outlook?
2. Navigate to File > Account settings > Account settings > Data file Tab > Share the screenshot.

Also, make sure you have your Outlook upto date.

I have set up Outlook over half a dozen times, with ForceOSTPath.
Each time removing account, each time removing .ost files.
Rebooted same times.

The .ost file will be stored on C:

Capture-02122018 113320.png

registry settings before install of new account
and after.

Maybe the latest Office 365 does not allow ForceOSTPath anymore...??

Capture-02122018 113847.png
Is that based on Exchange or IMAP Diane?

The below may be interesting.

Today I tried again and again... 4x
Remove account within Outlook, delete the .ost file (also the tmp ost)
Then add new account, selected IMAP, advanced, entered server settings, when done, the .ost file is on C:
Also tried ForceOSTPath as a normal key (REG_SZ) instead of REG_EXPAND_SZ, each time rebooting and removing .ost from C:

Now, here is something important, really.

It is the way how to the account is being et up ...

When selecting 'Advanced' and subsequently selecting IMAP, then by default the .ost is stored on C:\
At least, that is my experience after a dozen+ tries (really!).
Have spent hours on this.

However, I remembered that, initially, at the very first time, when starting off with Outlook 365, yesterday, at adding a new account, I simply entered my email address, password, i.e. I did not use the advanced options.

I was happy to notice that the .ost file was stored where I wanted it to be stored.

In that case, the method is Exchange, not IMAP.

My conclusion:
IMAP - .ost is stored on C:\ (the ForceOSTPath registry is ignored)
Exchange - the .ost file is stored as per ForceOSTPath registry-key.

You might ask why I want to use IMAP anyway.
That is because I am using a 3rd party spam filtering tool. I am using that tool for many, many years.
I discovered that does not support Exchange, regretfully so.

The tool marks/filters all spam, scam and even viruses and I can read mail (preview) before it is downloaded.
That is when using POP3 or IMAP. I think it is really nice software.
A very quick search on Internet shows me that probably affordable 3rd party spam filters, based on Exchange, meant for single end-users, is hardly available.
It is therefore I that I firmly tried to add an account basis IMAP, but with .ost stored in the folder I want.

Apologies to jump in here but I had the same problem trying to move the Data File for IMAP account and I eventually managed to do so with the following steps.
I did eventually managed to move the .ost IMAP file to the D\: drive.
This is how I managed to resolve the issue of moving Data Files to the D\:Users\Username\Documents\Outlook Files\IMAP folder.
  • Removed the email account from Outlook, (the Data File will be removed by default). The email account and Data File MUST be removed before you create the ForcePSTPath key AND the ForceOSTPath!
  • Deleted the file in C:\Users\Username\AppData\Local\Microsoft\Outlook\email address.ost file.
  • Opened the Registry, navigated to HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook
  • I created both the Expandable String Value:ForcePSTPath key AND the ForceOSTPath and the Value data to read “D\:\Users\Username\Documents\Outlook Files\IMAP
  • Saved Registry and powered off the pc.
  • Powered on the pc
  • Opened Control Panel > Mail > E-mail accounts > Account settings > New added the IMAP account Manually (Do not use Add new mail account within Outlook!)
  • The Data File was created the Data Path D\:Users\Username\Documents\Outlook Files\IMAP folder.
Hope this is helpful.
When the office is shut I will take some screen shots to prove the Data File was moved to the D\:Users\Username\Documents\Outlook Files\IMAP folder.
Is that based on Exchange or IMAP Diane?
Oh. Exchange. Try the forcepstpath with imap.

This dates back to when imap used pst files - they never changed the key when they changed the data file type.
Thanks Diane. I was using a 3rd party tool that filters/marks spam/viruses/scam based on spamblock-lists (spamhouse/spamcop)
That worked fine. Have been using more than 15 years. It works fine with POP3: mail is first filtered before it is retrieved from the mail server.
However, with IMAP and Exchange, the mail arrives in the mailbox without delay, hence filtering is not possible anymore.

IMAP for Mac had something like IMAP IDLE, Windows has no 'delayed delivery' option, AFAIK.

Anyway I have an Exchange account now.

Thanks again.
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
X Custom icon (not from Office 365) for a macro in Outlook Outlook VBA and Custom Forms 1
T Outlook 365 won't take new working password Using Outlook 0
P Yahoo/IMAP folder rename by Outlook desktop 365 Using Outlook 0
P VBA to add email address to Outlook 365 rule Outlook VBA and Custom Forms 0
Rupert Dragwater Background colors not saving in Outlook 365 Using Outlook 15
J Outlook 365 html inline images Using Outlook 0
Rupert Dragwater How to get Outlook 365 to open from websites Using Outlook 5
HarvMan Outlook 365 - Rule to Move an Incoming Message to Another Folder Using Outlook 4
TomHuckstep Remove Send/Receive All Folders (IMAP/POP) button from Outlook 365 Ribbon Using Outlook 2
A Outlook 365 Outlook (part of 365) now working offline - argh Using Outlook 5
G LinkedIn tab missing in Outlook 365 (but working in OWA) Using Outlook 0
P now on office 365 but getting error messages about missing Outlook 2013 cache folders Using Outlook 2
L Synch Outlook 365 calendar with iPhone Using Outlook 0
D Outlook 365 Custom forms field limit? Outlook VBA and Custom Forms 4
J Outlook 2016 Trying to get Outlook 2016 to work with Office 365 Using Outlook 0
L Duplicate calendar entries in Outlook 365 Using Outlook 3
G Stop Outlook 365 adding meetings to calendar Using Outlook 1
HarvMan Using Emojis in Outlook 365 Using Outlook 3
T Outlook 2019 Not Using Auto Compete After Deletion of 365 Using Outlook 1
CWM550 Is it me, or is Outlook 365 BUGGY? Using Outlook 3
K Outlook 365 After migrating to Outlook 365, some contacts display in emails with prefixes Using Outlook 0
HarvMan Outlook 365 loses "outlook.com" exchange server settings Using Outlook 1
D Office 365 Outlook desktop app prompts for all account passwords on startup Using Outlook 11
L Recommendations for Utility to Backup Outlook 365 Account Settings Using Outlook 2
Z New minimum Outlook for Windows version requirements for Microsoft 365/Exchange Online Using Outlook.com accounts in Outlook 27
kburrows Outlook 365 - Ribbon Customizations Disappear Using Outlook 0
C Why does Outlook (desktop) 365 for Windows keep making me input my passwords? Using Outlook 12
J Outlook 365 Outlook 2016/365 Contacts Lose Info when Favorited to the To-Do Bar Using Outlook 2
O Outlook 365 - Gmail and Outlook: how to force Outlook to start up in Gmail? Using Outlook 2
M Outlook 365 refuses to send email Using Outlook 0
P How can I stop Outlook 365 duplicating the posts? Using Outlook 1
HarvMan Toggle between calendar and email in Outlook 365 Using Outlook 12
S Mac Outlook 365 Questions Using Outlook 1
R Outlook 365 update sets delete from server flag Using Outlook 1
O Outlook 365 - How to create / copy a new contact from an existing one? Using Outlook 5
F Excel VBA to move mails for outlook 365 on secondary mail account Outlook VBA and Custom Forms 1
F Outlook 365 is "Possessed" Using Outlook 2
K Outlook Office 365 VBA download attachment Outlook VBA and Custom Forms 2
AmonRa Outlook 365 calendar - too much white space Using Outlook 0
G Outlook 365 with iCloud account not syncing calendars Using Outlook 2
L Ideas for Setup with New Office 365 Family Subscription (Outlook) Using Outlook.com accounts in Outlook 3
D Connecting Gmail to Outlook 365 - My Setup not working Using Outlook 2
Z Outlook 365 delete reminder you can’t make change to contents of this-read only folder Using Outlook 4
D Outlook 2016 how to use gmail account as source account for outlook 365 Using Outlook 9
M outlook 365 trying to finish my sentences Using Outlook 2
C Not sync folders not found after MS Outlook 365 update Using Outlook 1
D Outlook 2007 on 365 Using Outlook.com accounts in Outlook 2
Terry Sullivan Sender's Name Doesn't Appear in the From Field on Outlook 365/IMAP Using Outlook 2
A Backup Email Accounts On OutLook For Mac 2016 (Microsoft 365 subscription version) Using Outlook 0
X Using Outlook 2013 and Outlook 365 Using Outlook 1

Similar threads