I know it's possible to script the export in Outlook 2007, but what about Outlook 2010? Can someone point me in the right direction or does anyone have a vb script to do this in Outlook 2010?
No. You can't even in Outlook 2007. No way to create a pure vbscript that converts OST to PST. Third-party utility/library is required for ost 2 pst converter like Online OST to PST file conversion service.
Microsoft does not provide an official tool to do the conversion. However, if you can access the contents of the OST file in your Outlook, then you can perform the conversion manually, as follows:
1. Start Outlook. Make sure you can access all the contents in the OST file to be converted.
2. Create a new PST file.
3. Go to the OST file, select and copy all the contents to be converted with your mouse.
4. Go back to the new PST file, then paste all the contents into the PST file