Home · Guides · Automation

PST Conversion from the Command Line

By the Sensory Networks Editorial Team Updated July 3, 2026 6-minute read

Quick answer: Total Outlook Converter ships with a command-line interface alongside its GUI: call the executable with a source PST, a destination folder and a format switch, drop that line into a .bat file, and Windows Task Scheduler can convert new mail to PDF every night. For web servers and ActiveX integration, Total Outlook Converter X runs without Microsoft Outlook installed.

A GUI is the right tool the first time. The fifth time you convert the same mailbox for the same monthly archive, clicking through the same six screens stops being diligence and starts being toil. Anything you do on a schedule belongs in a script.

When scripting beats the GUI

From zero to a scheduled job in five steps

  1. Install the converter and find the executable. Total Outlook Converter installs on Windows 7–11; the program folder contains the executable the scripts below call. The 30-day trial runs the CLI too.
  2. Do one run in the GUI first. Set the format, file-naming template, folder-structure option and filters interactively and confirm the output looks right — the PST-to-PDF guide walks through every screen. Scripting a job you have never run by hand is how surprises get scheduled.
  3. Write the command. Source file, destination folder, format switch, log path. Test it in a console window on a small PST.
  4. Wrap it in a .bat file. Variables for the paths, one call per mailbox, output logged. Keep the script beside the archive so the settings document themselves.
  5. Schedule it. Register the .bat with Windows Task Scheduler for 2:30 in the morning and read the log with your first coffee.

The command pattern

The shape of a conversion call is source, destination, options:

OutlookConverter.exe "C:\Mail\Archive-2025.pst" "D:\Export\PDF\" -c pdf -log D:\Export\convert.log

One honest caveat: switch names differ between builds and versions, so treat the line above as the pattern, not gospel. Run the executable with -help (or open the help file installed with the app) to get the exact switch list your version supports — including format selection, file naming and date filtering, the same options the GUI exposes.

Wrapping it in a .bat file

@echo off
rem Convert a leaver's mailbox to PDF for the records share
set SRC=C:\Mail\Departed\jsmith.pst
set DST=\\records\archive\jsmith\
OutlookConverter.exe "%SRC%" "%DST%" -c pdf -log "%DST%run.log"

Quote every path — mailbox files love to live in folders with spaces — and write the log onto the destination share so the evidence of the run stays with the output.

Scheduling with Windows Task Scheduler

schtasks /Create /TN "MailArchive" /TR "D:\Scripts\archive-mail.bat" /SC DAILY /ST 02:30

The same registration works from the Task Scheduler GUI if you prefer forms to flags. Give the task an account with read access to the PST and write access to the destination, and stagger it away from backup windows — both jobs hammer the same disks.

Can it run when nobody is logged in?

Scheduled desktop runs cover most office needs. But if the job must live on a web server, run as a service, or be called from your own application, the desktop app is the wrong shape — that is what Total Outlook Converter X exists for. The X edition is built for server and ActiveX use and, unlike the desktop edition, does not need Microsoft Outlook installed on the machine at all — which on a hardened server is not a nice-to-have but a requirement.

Three habits that save support tickets

Get the tool first, script second: the desktop edition with the command-line interface lives at https://www.coolutils.com/TotalOutlookConverter — $49.90 Personal licence, 30-day trial, no credit card or email. How it ranks against the other five converters we tested is on the home page.