We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Backup complete PST to Exchange

I like to know if there is some direct method of backing up entire PST to Exchange account?


We believe you are talking about restoring a PST to Exchange server. Please use the IEWSClient.Restore method to achieve this as shown in the following code sample.

const string mailboxUri = "https://exchange.domain.com/ews/Exchange.asmx";
const string domain = @"";
const string username = @"userName";
const string password = @"password";
NetworkCredential credentials = new NetworkCredential(username, password, domain);
IEWSClient client = EWSClient.GetEWSClient(mailboxUri, credentials);
string inputPst = @"Source.pst";
client.Restore(inputPst, RestoreOptions.RemoveNonexistentItems);