Automatic transfer of mail from ost to pst

You're looking for a way to automatically transfer emails from Outlook.ost file to a.pst file.

There are a few methods to achieve this:

Method 1: Using Microsoft's built-in tool

You can use the "Export" feature in Outlook to transfer emails from an.ost file to a.pst file. Here's how:

  1. Open Outlook and go to the "File" menu.
  2. Click on "Open & Export" and then select "Export to a file".
  3. Choose the "Outlook Data File (.pst)" option and click "Next".
  4. Select the.ost file you want to transfer emails from and click "Next".
  5. Choose the folder you want to export (e.g., Inbox, Sent Items, etc.) and click "Finish".

Method 2: Using a third-party tool

There are several third-party tools available that can help you transfer emails from an.ost file to a.pst file. Here are a few options:

  1. OST to PST Converter: This tool can convert.ost files to.pst files and also supports other formats like.eml,.msg, and.mbox.
  2. Outlook OST to PST Converter: This tool is specifically designed to convert.ost files to.pst files and also supports other formats like.eml,.msg, and.mbox.
  3. Kernel for OST to PST: This tool can convert.ost files to.pst files and also supports other formats like.eml,.msg, and.mbox.

Method 3: Using PowerShell script

If you're comfortable with PowerShell scripting, you can use the following script to transfer emails from an.ost file to a.pst file:

$ostFile = "C:\Path\To\Your\OSTFile.ost"
$pstFile = "C:\Path\To\Your\PSTFile.pst"

$ost = New-Object -ComObject Outlook.Application
$ost.GetNamespace("MAPI").Logon("Your Email Address", "Your Email Password")

$folders = $ost.GetDefaultFolder(6).Folders
foreach ($folder in $folders) {
    $items = $folder.Items
    foreach ($item in $items) {
        if ($item.Class -eq 1) {
            $item.SaveAs $pstFile, 2
        }
    }
}

$ost.Quit()

Replace the placeholders with your actual.ost file path,.pst file path, email address, and email password.

Remember to backup your.ost file before transferring emails to a.pst file, as this process may overwrite existing data in the.pst file.