Posted in
Virtual Machine Manager,
Windows Powershell |
No Comment | 10,816 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 "hyperv02.yusufozturk.info"
-Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths ""
-Reassociate $true -RunAsynchronously -NonTrustedDomainHost -VMHostGroup $VMHostGroup |
$Credential = get-credential
$VMHostGroup = Get-VMHostGroup -VMMServer localhost | where {$_.Path -eq "All Hosts"}
Add-VMHost -VMMServer localhost -ComputerName "hyperv02.yusufozturk.info"
-Description "" -Credential $Credential -RemoteConnectEnabled $true -VmPaths ""
-Reassociate $true -RunAsynchronously -NonTrustedDomainHost -VMHostGroup $VMHostGroup
You can find an example about $Credential in this blog.