SCVMM 2008 R2–Error 2912 - An internal error has occurred trying to contact an agent
I love the “unknown” error things but as all of us know you can NOT handle all error conditions within application coding. Therefore I would like to provide here an possible resolution which you need to confirm if it applies to your environment.
I faced this error and did some research and found out that this could also be related to BITS (Background Intelligent Transfer Service). BITS is being used excessively by VMM for file transfers.
Error (2912) An internal error has occurred trying to contact an agent on the vmmmserver.yourdomain.com server.
(Unknown error (0x80041001))
Ensure the agent is installed and running. Ensure the WS-Management service is installed and running, then restart the agent.
Check for the output if you see any BITS jobs which are not owned by "NT AUTHORITY\SYSTEM" and have status "Suspended".
To delete the failed/corrupt BITS job you need to run:
$AllJobs = Get-BitsTransfer -AllUsers
Remove-BitsTransfer -BitsJob $AllJobs
You will receive an "Access Denied" but this is ok as SYSTEM owned jobs cannot be deleted:
Remove-BitsTransfer : Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
List of known issues for Background Intelligent Transfer Service (BITS)