Thursday, January 28, 2016

Setdpmserver, errorcode = 0x80070005, error says: access is denied


So today I ran into an interesting problem when installing a DPM-agent on a Domain Controller in another trusted-domain.

The agent-installation completed successfully but when I ran:
   SetDpmserver.exe -dpmservername
In a elevated command prompt I got received the error
   SetDpmServer failed with errorcode = 0x80070005, error says: Access is denied.

My solution, after some hours of troubleshooting, was to run a Enter-PsSession to the production server, from the DPM-server in my

   Enter-PSSession -Credential Contoso\DomainAdminUser

*fill in my password in the authentication-box*

   CD 'C:\Program Files\Microsoft Data Protection Manager\DPM\bin'

   .\SetDPMServer.exe -dpmservername

I hope this can help anyone of you!

Kind Regards
Markus Eliasson