My current Hyper-V lab includes a VMM server and a Hyper-V host. The VMM server used to manage another Hyper-V host which no longer exists. It appears as offline in the VMM console, which is a bit painful because I’ll be doing some demos with this machine in the coming months. I’d like it to be a bit cleaner. Try to remove the missing host and I am asked for credentials and then I get this failure:
Error (406)
Access has been denied while contacting the server <servername>.
Recommended Action
1. Verify that the specified user account has administrative privileges on <servername>.
2. Verify that DCOM access, launch, and activation permissions are enabled on <servername> for the Administrators group. Use dcomcnfg.exe to modify permissions, and then try the operation again.
It seems like VMM wants to verify the credentials with the missing machine before removing it. Catch-22! You can use PowerShell to overcome this. You’ll start out by running PowerShell from the VMM program group in the Start menu (or by adding the VMM module into a normal PowerShell window or script). Then you connect to the VMM server:
get-vmmserver <Vmm_Server_Name>
You can forcibly remove the missing host server by running:
remove-vmhost <Host_Server_Name> –force
Wait a few seconds and you’ll have a nice and clean VMM console once again.
Hello Aidan,
Love to read your articles.. but there’s still one question which bothers me…
Can you tell me, as an vm expert, if I can add remote hyper-v servers to my system center 2012 r2 vmm console?
Yes
I had a similar problem.
Following a crash of a cluster, I had to re-install an hyper-v server completely.
When I opened SCVMM, the server and the cluster name was there, but under its old identity.
I was unable to delete the host with SCVMM, using powershell command and I didn’t want to start to clean up everything in the SQL DB and cause a potential impact.
So, this is wat I did.
1. I removed the host using the powershell command remove-vmhost
2. The Server status changed to: Hostname (pending)in SCVMM.
3. Right click on the host, and click Add . Use the credentials to add the host, and reboot it.
Same steps as adding a new host in SCVMM.
What I cant find is a set of commands to run to completely remove a Hyper-V guest from a Host cluster 2012 R2, remove storage, hyper-V itself, Monitoring, the missing status in VMM and DC computer and DNS, in other words, decommission a Hyper-V totally