Hyper-V 学习笔记
本帖最后由 wuyvzhang 于 2016-8-2 17:26 编辑 <br /><br /> 开启用户管理Hyper-V权限~下载配置脚本~
复制到Hyper-V服务器上
服务器操作:
将复制的hvremote.wsf保存在D盘
新建用户(用户名和密码必须同客户端的一模一样)
在cmd下定位到D:\执行脚本:
cscript.exe hvremote.wsf /add:计算机名字\用户名
客户端操作:
同样copy到D盘
执行 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
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 ]
示例:
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)
常用TCP 80 3389 20 21 22 139 445
UDP 137 138
加入域
Netdom join /domain: /userd: /password:*
Windows 7 Service Pack 1 (SP1) 远程服务器管理工具
安装后,在控制面板,程序,打开/关闭Windows功能,开启~
原创文章,转载请注明: 转载自Seth's Blog by hekai
www.138317.com SO娱乐城:真_人.足球.彩票齐全| 开户送10元.首存送58元.手机可投ヶ注任何游戏顶级信用ヶ提现即时到账SO.CC
页:
[1]