Microsoft KB Archive/172715

= "Access Denied" trying to use HrBackupPrepare =

Article ID: 172715

Article Last Modified on 8/17/2005

-

APPLIES TO


 * 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



SYMPTOMS
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.



RESOLUTION
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.



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



MORE INFORMATION
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:  Create a new domain user, and then name it Account1. Add Account1 to the Backup Operator group. 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: -B:  -T:DSA

Note Replace  with the name of the computer that is running Exchange Server. Replace  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. 