现在的位置: 首页 > 综合 > 正文

Hyper-V 学习笔记

2011年07月09日 ⁄ 综合 ⁄ 共 2912字 ⁄ 字号 评论关闭

开启用户管理Hyper-V权限~

 http://archive.msdn.microsoft.com/HVRemote/Release/ProjectReleases.aspx?ReleaseId=3084

 下载配置脚本~

 复制到Hyper-V服务器上

  服务器操作:

 将复制的hvremote.wsf保存在D

 新建用户(用户名和密码必须同客户端的一模一样)

 cmd下定位到D:\执行脚本:

cscript.exe hvremote.wsf /add:计算机名字\用户名

 

 客户端操作:

 同copyD

执行 cscript.exe hvremote.wsf /mmc:enable

开放客户端撒谎能够MMC连入的防火墙配置

 执行 cscript.exe hvremote.wsf /AnonDCOM:grant

开放匿名用户访问DCOM

 重启服务器即可~

 10-second guide

 

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

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 icon smile Hyper V 学习笔记

 

Client

If passwords do not match

cmdkey /add:servername /user:servername\account /pass

 

Client

Set firewall exception

cscript hvremote.wsf /mmc:enable

 

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

 

Client

Set firewall exception

cscript hvremote.wsf /mmc:enable

 

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

 

Client

Set firewall exception

cscript hvremote.wsf /mmc:enable

 

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 ***

 

Client

Set firewall exception

cscript hvremote.wsf /mmc:enable

 

Both

Verify configuration for errors

cscript hvremote.wsf /show /target:othercomputername

  

在服务端命令提示符安装驱动

 Microsoft PnP 工具

用法:

——

pnputil.exe [-f | -i] [ -? | -a | -d | -e ] <INF 名称>

示例:

pnputil.exe -a a:\usbcam\USBCAM.INF      -> 添加 USBCAM.INF 指定的程序包

pnputil.exe -a c:\drivers\*.inf          -> 添加 c:\drivers\ 中的所有程序包\

pnputil.exe -i -a a:\usbcam\USBCAM.INF   -> 添加和安装驱动程序包

pnputil.exe -e                           -> 枚举所有第三方程序包

pnputil.exe -d oem0.inf                  -> 删除程序包 oem0.inf

pnputil.exe -f -d oem0.inf               -> 强制删除程序包 oem0.inf

pnputil.exe -?                           -> 此用法屏幕

  

更改密码

net user <用户名> *

输入密码

 

开放防火墙端口

netsh firewall portopening (TCP | UDP) <port>

常用TCP 80 3389 20 21 22 139 445

UDP 137 138

 

加入域

Netdom join <计算机>/domain:<域名> /userd:<用户名> /password:*

  

Windows 7 Service Pack 1 (SP1) 远程服务器管理工具

 http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d

安装后,在控制面板,程序,打开/关闭Windows功能,开启~

 

原创文章,转载请注明: 转载自Seth's Blog by hekai

抱歉!评论已关闭.