Windows mail export to pst

Windows Mail is a built-in email client in Windows Vista and Windows 7, and it uses a proprietary database to store emails. Unfortunately, Windows Mail does not have a built-in feature to export emails to a PST (Personal Folders File) file, which is a format used by Microsoft Outlook.

However, there are a few workarounds to export Windows Mail emails to a PST file:

Method 1: Using Windows Live Mail

If you have Windows Live Mail installed on your system, you can use it to export your Windows Mail emails to a PST file. Here's how:

  1. Install Windows Live Mail if you haven't already.
  2. Open Windows Live Mail and go to "File" > "Import" > "Windows Mail".
  3. Follow the prompts to import your Windows Mail emails into Windows Live Mail.
  4. Once the import is complete, go to "File" > "Export" > "Export to a file" and select "PST" as the file format.
  5. Choose a location to save the PST file and click "Export".

Method 2: Using a third-party tool

There are several third-party tools available that can export Windows Mail emails to a PST file. Here are a few options:

  1. MailDroid: A free tool that can export Windows Mail emails to a PST file. Download and install MailDroid, then follow the prompts to export your emails.
  2. Windows Mail to PST Converter: A paid tool that can convert Windows Mail emails to a PST file. Download and install the tool, then follow the prompts to export your emails.
  3. EML to PST Converter: A free tool that can convert EML files (which are the format used by Windows Mail) to a PST file. Download and install the tool, then follow the prompts to export your emails.

Method 3: Using a script

If you're comfortable with scripting, you can use a PowerShell script to export Windows Mail emails to a PST file. Here's an example script:

$wm = New-Object -ComObject Windows.Mail
$folders = $wm.Folders
$inbox = $folders.Item("Inbox")
$emails = $inbox.Items
$pst = New-Object -ComObject Outlook.Application
$namespace = $pst.GetNamespace("MAPI")
$folder = $namespace.GetDefaultFolder(6) # 6 = Inbox
foreach ($email in $emails) {
    $item = $folder.Items.Add($email.Class, $email.Subject, $email.Body)
    $item.SaveAs($folder.DistinguishedName, $email.Body)
}

This script uses the Windows Mail COM object to access your emails, and then uses the Outlook COM object to create a new PST file and save the emails to it. Note that this script requires Outlook to be installed on your system.

I hope these methods help you export your Windows Mail emails to a PST file!