VirtualMetric Hyper-V Monitoring, Hyper-V Reporting


Cozumpark Bilisim Portali
Posted in Virtual Machine Manager, Windows Powershell | No Comment | 10,754 views | 13/10/2009 00:36

You can add untrusted domain host to System Center Virtual Machine Manager 2008 R2 (SCVMM 2008 R2) with Powershell using:

$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts"}
Add-VMHost -VMMServer localhost -ComputerName ""
-Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths ""
-Reassociate $true -RunAsynchronously -NonTrustedDomainHost -VMHostGroup $VMHostGroup

You can find an example about $Credential in this blog.

Posted in Virtual Machine Manager | No Comment | 7,557 views | 13/10/2009 00:26

You may get this error when you try to add an external host to SCVMM 2008 R2:

Error (415)
Agent installation failed copying C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2\agents\I386\2.0.4271.0\msiInstaller.exe to \\\ADMIN$\msiInstaller.exe.
(The system detected a possible attempt to compromise security. Please ensure that you can contact the server that authenticated you)

Recommended Action
1. Ensure is online and not blocked by a firewall.
2. Ensure that file and printer sharing is enabled on and it not blocked by a firewall.
3. Ensure that there is sufficient free space on the system volume.
4. Verify that the ADMIN$ share on exists. If the ADMIN$ share does not exist, reboot and then try the operation again.

Solution: Check external host’s AD DNS servers. In my scenario, DNS servers were down, I couldn’t get authenticated.