====== 在Windows PE里设置静态IP,wget下载文件,运行tvnserver远程连接 ====== 感谢:“对你一辈子的想念” Windows PE的版本是10 64位。过程如下: 1.如微软官方的PE不含网卡驱动,可用 dism++ 加上驱动。使用ipconfig查看网卡配置信息,如本例活动网卡名称是 Ethernet,没成功获得公网IP {{https://alioss.anqun.org/typecho/2018/12/13/022223052396167.png}} 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 {{https://alioss.anqun.org/typecho/2018/12/13/022222033725709.png}} 3.本例在PE中保存了\mytools\set-ip.bat的脚本,方便运行 {{https://alioss.anqun.org/typecho/2018/12/13/0222289751616.png}} 4.如果IP配置正确,可ping外网成功 {{https://alioss.anqun.org/typecho/2018/12/13/022222535714379.png}} 5.本例在PE中保存了\mytools\wget.exe,方便从网上下载文件,本例下载的是tvnserver.zip {{https://alioss.anqun.org/typecho/2018/12/13/02222441087095.png}} 6.本例在PE中保存了\mytools\7-zip\,可使用\mytools\7-zip\7zfm.exe 来进行文件管理,如解压之类操作 {{https://alioss.anqun.org/typecho/2018/12/13/02223166246982.png}} 7.tvnserver.zip中包含start-tvnc.bat的脚本,方便禁用防火墙,导入有密码(drserver)设置的tvnserver注册表内容,启动tvnserver {{https://alioss.anqun.org/typecho/2018/12/13/022232096962535.png}} 8.这是start-tvnc.bat的脚本内容 {{https://alioss.anqun.org/typecho/2018/12/13/02223655370104.png}} 9.start-tvnc.bat的脚本执行结果 {{https://alioss.anqun.org/typecho/2018/12/13/02223415735456.png}} 10.如果tvnserver启动,会监听5900端口 {{https://alioss.anqun.org/typecho/2018/12/13/022232549634699.png}} 11.如果tvnserver的注册表未成功导入,可能会报密码验证错误:Authentication reason:Server is not configured properly {{https://alioss.anqun.org/typecho/2018/12/13/022232678386960.png}} 12.从本地,用tvnviewer连接测试,成功 {{https://alioss.anqun.org/typecho/2018/12/13/022243108906835.png}} 参考: * http://blog.unit34.co/2016/02/remote-connect-to-windows-pe-with-vnc.html * https://www.chuyu.me/zh-Hans/ * https://www.7-zip.org/ * 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