Registrations are now open. Join us today!
There is still a lot of work to do on the wiki yet! More information about editing can be found here.
Already have an account?

Microsoft KB Archive/172715

From BetaArchive Wiki

Article ID: 172715

Article Last Modified on 8/17/2005


  • Microsoft Exchange Development Kit 5.5
  • Microsoft Exchange Server 4.0 Standard Edition
  • Microsoft Exchange Server 5.0 Standard Edition
  • Microsoft Exchange Server 5.5 Standard Edition

This article was previously published under Q172715


The HrBackupPrepare() function returns the error "Access Denied" (error number 5) if the Windows NT account of the caller is a member of the Backup Operators, but has a different ID from the Exchange Service "Log On As" account.


The user should back up Exchange remotely. If the Windows NT account has to log on to the same machine where Exchange Server resides (local), the ID should be the same as the Exchange Service.


Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.


BackTest is an EDK sample that uses HrBackupPrepare(), where the problem can be reproduced.

Steps to reproduce the problem

To reproduce the problem, follow these steps:

  1. Create a new domain user, and then name it Account1.
  2. Add Account1 to the Backup Operator group.
  3. Run the BACKTEST utility under Account1 on the computer that is running Microsoft Exchange Server. To run the BACKTEST utility, type the following command:

    backtest -S:machine1 -B:dsa.bk -T:DSA

    Note Replace machine1 with the name of the computer that is running Exchange Server. Replace dsa.bk with the name of your backup file. DSA is a backup type that is used to back up directories. If you want to back up information stores, replace DSA with MDB.

The backup fails with access denied.


For additional information about how to use the BACKTEST utility, visit the following Microsoft Developer Network (MSDN) Web site:

Additional query words: back test

Keywords: kbapi kbmsg kbprb KB172715