Call us (425) 818-8252 | (800) 624-9561 x106 |sales@wholesalebackup.com

How to Safely Close Outlook Before Backup

In this post we’re going to show you how to safely close Outlook from the command line

This is really helpful when it comes to running backups on a PST files and you are seeing errors from locked system files.

5 Questions

You Must Answer When Choosing a
White Label Backup Solution

  1. Create a visual basic script (let’s call it outlookcloser.vbs) in a directory, with the following code:
    On Error Resume Next
    Set Outlook = GetObject(, "Outlook.Application")
    If Err = 0 Then
    Outlook.Quit()
    Set Outlook = Nothing
    End If
    Wscript.Quit
  2. Create a batch file (let’s call it StopOutlookBatch.bat) in the same directory, with the following contents, except that you need to ensure that the outlook file location matches yours, and that the backup destination (c:\outback\outlook.pst) is the right one, and exists:
    @echo off
    REM run the command to gracefully close outlook - THIS SHOULD BE IN THE SAME DIR!
    cscript.exe outlookcloser.vbs //B //nologo
    choice /T 10 /D y > nul
    REM copy the outlook file - VERIFY THAT THIS IS THE RIGHT FILE FOR THE PROFILE!
    robocopy.exe C:\Users\USER\AppData\Local\Microsoft\Outlook\ C:\outback\ outlook.pst
  3. Run the batch file, which will stop outlook, then copy the file to the specified location, from where you can process it further as required.

If you’re using our software, you DO NOT NEED this script

That’s because our software uses VSS properly to backup Outlook files, even though many other top-level backup applications fail to backup Outlook pst files. But if you’re trying to cobble something together, as was a recent poster on Spiceworks, then you may need this advice. So here it is:

WholesaleBackup provides a white label backup software platform, that allows you to offer secure, automated offsite backup service

white box of bundled software

WholesaleBackup provides a full suite of white label backup software

You can build your very own Windows backup server using our server backup platform then provision enduser online backup clients branded with your company name. Your customers will have a local and online backup system where they can store their backup data in a local vault on their own machine in addition to having another backup storage vault on your Windows backup server.

We also provide a hybrid cloud backup platform that allows you to store customer data on very cheap cloud storage from Amazon S3 and Google cloud storage. This options does not require you to have your own server. All you have to do is provision the cloud backup clients with your company brand and logo, once they are installed and the selections are made for the files and folders to backup, the data will go through a de-duplication process to avoid duplicate files, then create file blocks which are encrypted for transmission which will be sent to your cloud storage vault.

Whether you choose to build your own backup server or create your own cloud backup clients, you can run and monitor your backup business from a web browser with the Backup Management Web Console, which centralizes all of your customers status, backups, settings and billings information. Our Partners, MSPs, VARs and resellers, call this the mission control center for their backup operations.

By | 2018-02-02T08:29:00+00:00 April 14th, 2015|