开发者社区> 问答> 正文

在Windows PE里设置静态IP,wget下载文件,运行tvnserver远程连接

感谢:对你一辈子的想念


Windows PE的版本是10 64位。过程如下:


1.如微软官方的PE不含网卡驱动,可用 dism++ 加上驱动。使用ipconfig查看网卡配置信息,如本例活动网卡名称是 Ethernet,没成功获得公网IP



2.可用netsh命令来配置静态IP,如本例的:
netsh interface ip set address name="Ethernet" static 144.172.126.32 255.255.255.0 144.172.126.1 1
netsh interface ip set dns name="Ethernet" static 8.8.8.8






3.本例在PE中保存了`\mytools\set-ip.bat`的脚本,方便运行



4.如果IP配置正确,可ping外网成功



5.本例在PE中保存了`\mytools\wget.exe`,方便从网上下载文件,本例下载的是tvnserver.zip



6.本例在PE中保存了`\mytools\7-zip\`,可使用`\mytools\7-zip\7zfm.exe` 来进行文件管理,如解压之类操作



7.tvnserver.zip中包含start-tvnc.bat的脚本,方便禁用防火墙,导入有密码(drserver)设置的tvnserver注册表内容,启动tvnserver



8.这是start-tvnc.bat的脚本内容



9.start-tvnc.bat的脚本执行结果



10.如果tvnserver启动,会监听5900端口



11.如果tvnserver的注册表未成功导入,可能会报密码验证错误:Authentication reason:Server is not configured properly



12.从本地,用tvnviewer连接测试,成功



参考:
* http://blog.unit34.co/2016/02/remote-connect-to-windows-pe-with-vnc.html
* https://www.chuyu.me/zh-Hans/
* https://social.technet.microsoft.com/Forums/en-US/002d7267-7bda-4bbf-9024-859bdfb6b9b4/can-i-disable-quotpress-any-key-to-boot-from-cddvdquot-using-automated-installation-kit?forum=w7itproinstall
* https://eternallybored.org/misc/wget/
* https://social.technet.microsoft.com/Forums/en-US/ec0c33a7-16c7-4758-b90e-5dfbc3ed5ea1/winpe-and-rdpremote-server?forum=mdt
* https://docs.microsoft.com/zh-cn/windows-hardware/manufacture/desktop/winpe-intro
* https://www.7-zip.org/

展开
收起
dongshan8 2018-12-30 16:40:52 2970 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
《云服务器运维之Windows篇》 立即下载
TAKING WINDOWS 10 KERNEL 立即下载
ECS运维指南之Windows系统诊断 立即下载