您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 公司方案 > Win7环境下工作组连接Hyper
Win7环境下工作组连接Hyper-V配置1、首先下载一个脚本Hyper-VRemoteManagementConfigurationUtility(最新版本是0.7),下载后得到hvremote.wsf文件,将其放到一个单独的目录下,例如c:\winsows\system32。2、然后用管理员身份运行CMD3、在CMD界面下输入“cscript//h:cscript”命令后按回车。因为HVRemote工具无法在系统默认的WScript模式下执行。4、使用“cmdkey”命令,将能连接到hyper-v服务的账号和密码存储在本地。格式:cmdkey/add:服务器名/user:用户名/pass:密码然后使用cmdkey/list查看密码是否已存储。Cmdkey的语法如下:viewplaincopyCMDKEY[{/add|/generic}:targetname{/smartcard|/user:username{/pass{:password}}}|/delete{:targetname|/ras}|/list{:targetname}]示例:要列出可用的凭据:cmdkey/listcmdkey/list:targetname要创建域凭据:cmdkey/add:targetname/user:username/pass:passwordcmdkey/add:targetname/user:username/passcmdkey/add:targetname/user:usernamecmdkey/add:targetname/smartcard要创建普通凭据:/add开关可以由/generic替代,来创建普通凭据要删除现有凭据:cmdkey/delete:targetname要删除RAS凭据:cmdkey/delete/ras操作例子:viewplaincopyCmdkey/add:hyperv/user:liangxu@isoftstone.com/pass:password5、在命令提示符下进入c:\winsows\system32目录,然后运行HVRemote/AnonDCOM:grant命令viewplaincopyC:\Windows\system32HVRemote/AnonDCOM:grantMicrosoft(R)WindowsScriptHostVersion5.8版权所有(C)MicrosoftCorporation1996-2001。保留所有权利。Hyper-VRemoteManagementConfiguration&CheckupUtilityJohnHoward,Hyper-VTeam,MicrosoftCorporation.Version0.77thAugust2009INFO:ComputernameisISS120001001198INFO:ComputerisinworkgroupWORKGROUPINFO:CurrentuserisISS120001001198\XuLiangINFO:Assuming/mode:clientastheHyper-VroleisnotinstalledINFO:Build7600.16385.x86fre.win7_rtm.090713-1255INFO:DetectedWindows7/WindowsServer2008R2OSINFO:RemoteServerAdministrationToolsareinstalledINFO:Hyper-VToolsWindowsfeatureisenabledINFO:ObtainingcurrentMachineAccessRestriction...INFO:ExaminingsecuritydescriptorINFO:Nothingtodo-ANONYMOUSLOGONalreadyhasremoteaccessOK!到这个地方就差不多了,如果出现RPC错误,还有一步操作,即在hosts文件里维护Hyper-V服务器的机器名与其对应的IP地址。viewplaincopy#Copyright(c)1993-2009MicrosoftCorp.##ThisisasampleHOSTSfileusedbyMicrosoftTCP/IPforWindows.##ThisfilecontainsthemappingsofIPaddressestohostnames.Each#entryshouldbekeptonanindividualline.TheIPaddressshould#beplacedinthefirstcolumnfollowedbythecorrespondinghostname.#TheIPaddressandthehostnameshouldbeseparatedbyatleastone#space.##Additionally,comments(suchasthese)maybeinsertedonindividual#linesorfollowingthemachinenamedenotedbya'#'symbol.##Forexample:##102.54.94.97rhino.acme.com#sourceserver#38.25.63.10x.acme.com#xclienthost#localhostnameresolutionishandledwithinDNSitself.#127.0.0.1localhost#::1localhost10.36.128.250hyperv
本文标题:Win7环境下工作组连接Hyper
链接地址:https://www.777doc.com/doc-4238547 .html