最近把 Hyper-V 的 Server 由 2008 升級到 Hyper-V Server 2012,這一升級最大的改變是 Hyper-V Server 變成 Server Core 的環境,只有簡單的命令列模式,所有的圖形介面都消失了,為了控制 Hyper-V Server 只好使用遠端的 Windows 8 來管理這台機器。

另外因為 Server 不在加入網域,要使用命令列模式設定相關的權限開通等實在麻煩與繁瑣,還好有一個好工具 HVRemote.wsf 這個好工具可以使用,真的可以簡單快速的設定。

HVRemote 是由 John Howard 所撰寫的,他的 blog 有詳細的說明使用方式 John Howard - Senior Program Manager in the Hyper-V team

在 MSDN 也有相關的 HVRemote 使用說明,與下載連結,首頁上面快速設定真的很方便喔!

MSDN 的 Hyper-V Remote Management Configuration Utility


Support for Windows Server 2012 and Windows 8

10th Sept 2012 - Coming very soon in version 1.x, currently completing testing. It is not recommended you use version 0.7 on these operating systems and it may leave your system misconfigured.

10-second guide

 

ConfigurationWherePurposeCommands
Client and Server both workgroup Server Create a local account (eg "john") Use net user /? or Computer Management
  Server Grant the user access cscript hvremote.wsf /add:accountname ***
  Client Allow Anonymous Logon remote DCOM access cscript hvremote.wsf /anondcom:grant
  Client Logon with matching local account. Ctrl+Alt+Del :)
  Client If passwords do not match cmdkey /add:servername /user:servername\account /pass
  Both Verify configuration for errors cscript hvremote.wsf /show /target:othercomputername
-------------------------      
Client workgroup, Server domain Server Grant domain account access cscript hvremote.wsf /add:domain\account ***
  Client Allow Anonymous Logon remote DCOM access cscript hvremote.wsf /anondcom:grant
  Client Set credentials for domain account cmdkey /add:servername /user:domain\account /pass
  Both Verify configuration for errors cscript hvremote.wsf /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 cscript hvremote.wsf /add:accountname ***
  Client Allow Anonymous Logon remote DCOM access cscript hvremote.wsf /anondcom:grant
  Client Set credentials for local account Use cmdkey /add:servername /user:servername\accountname /pass
  Both Verify configuration for errors cscript hvremote.wsf /show /target:othercomputername
-------------------------      
Client and Server both domain Server Grant the non-admin user access cscript hvremote.wsf /add:domain\account ***
  Both Verify configuration for errors cscript hvremote.wsf /show /target:othercomputername



*** Restart server if this is the first time an account has been added. Not required for Windows 8 Client Hyper-V or Windows Server 2012

 


arrow
arrow
    全站熱搜

    王圓外 發表在 痞客邦 留言(0) 人氣()