Expired SCVMM certificate
In SCVMM 2012 R2 we suddenly couldn’t deploy VMs from a template, install “Virtual Guest Services Tools”, etc. All jobs failed with the following:
Error (2912)
An internal error has occurred trying to contact the server.domain.com server: NO_PARAM: NO_PARAM.
WinRM: URL: [http://server.domain.com:5985], Verb: [INVOKE], Method: [GetError], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/microsoft/bits/BitsClientJob?JobId={62469246-350C-4ADE-A0BE-80D9E30C382D}]
Unknown error (0x80072f05)
Recommended Action
Check that WS-Management service is installed and running on server server.domain.com. For more information use the command “winrm helpmsg hresult”. If server.domain.com is a host/library/update server or a PXE server role then ensure that VMM agent is installed and running. Refer to http://support.microsoft.com/kb/2742275 for more details.
We verified that we could connect to “server.domain.com” on TCP 5985 from the VMM server.
[PowerShell]:
tnc server.domain.com -Port 5985
Checking the self-signed certificate on the VMM server it showed that it was expired. (01.01.2018)
Resolution:
Delete the expired certificate from the VMM server’s Personal Store and create a new one:
[PowerShell]:
$credential = get-credential
Get-VMMManagedComputer -ComputerName “VMM-Server.domain.com” | Register-SCVMMManagedComputer -Credential $credential
You will now get a new certificate which is valid for 5 years.