PST Conversion from the Command Line
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
- Nightly or monthly archiving — yesterday's mail lands as PDF in the records share before anyone arrives.
- Departing-employee runbooks — IT runs one .bat with the leaver's PST path; the output is consistent every time, which is exactly what the eDiscovery workflow wants.
- Drop-folder conversion — a scheduled task sweeps a folder where staff deposit PST files and writes the converted output next to them.
- Server pipelines — conversion as a step in a larger job: export, convert, index, file.
From zero to a scheduled job in five steps
- 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.
- 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.
- Write the command. Source file, destination folder, format switch, log path. Test it in a console window on a small PST.
- 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.
- 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
- Never convert a PST that Outlook has open. Close Outlook or work on a copy; two processes in one mail file is asking for locks.
- Log everything. A dated log per run turns "the archive looks short" into a two-minute diff instead of a forensic afternoon.
- Version your scripts. The .bat that produced the 2025 archive should be readable in 2030, for the same reason the archive exists.
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.