2013年11月16日 星期六

非網域環境,遠端管理Hyper-V 2012 R2主機

當在非網域環境,遠端管理Hyper-V 2012 R2主機時,可能會出現

Hyper-V 管理員發生 "您沒有完成此工作的必要使用權限" 錯誤

 可經由以下方式解決

一、手機設定主機IP解析
修改C:\Windows\System32\drivers\etc\hosts
加入 IP 主機名稱
例如:192.168.1.11 HV1

二、使用hvermote工具,下載網址:http://code.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx?ReleaseId=1827
1.以系統管理員身份開啟"命令提示字元"
2.執行:cscript //h:cscript
3.參考以下環境執行對應的指令
 
Configuration Where Purpose Commands
Client and Server both workgroup Server Create a local account (eg "john") Use net user /? or Computer Management 
  Server Grant the user access hvremote /add:accountname          ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Logon with matching local account.  
  Client If passwords do not match cmdkey /add:servername /user:servername\account /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client workgroup, Server domain Server Grant domain account access hvremote /add:domain\account           ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Set credentials for domain account cmdkey /add:servername /user:domain\account /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client domain, Server workgroup Server Create a local account (eg "john") Use net user /? or Computer Management 
  Server Grant the user access hvremote /add:accountname           ***
  Client Allow Anonymous Logon remote DCOM access hvremote /anondcom:grant
  Client Set credentials for local account cmdkey /add:servername /user:servername\accountname /pass
  Both   Verify configuration for errors hvremote /show /target:othercomputername
-------------------------      
Client and Server both domain Server Grant the non-admin user access hvremote /add:domain\account           *** 
  Both   Verify configuration for errors hvremote /show /target:othercomputername

此時再使用Hyper-V管理員,應該就可以正確連上伺服器了。

參考來源:
http://www.askasu.idv.tw/index.php/2008/12/25/142/
http://blog.tenyi.com/2013/04/hyper-v-server-2012.html

沒有留言:

張貼留言