无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 4035|回复: 4
打印 上一主题 下一主题

求教:UEFI网启如何加个菜单的密码?

[复制链接]
1#
发表于 2019-5-23 15:52:07 | 显示全部楼层
TinyPXE网启
例:
set menu-default win864efi
menu iPXE EFI Boot Menu
#console --x 800 --y 600 --picture http://${next-server}/ipxe.png --left 30 --right 450 --top 30
item win864efi                1.Yigeren Win8x64PE
item win10x64efi        2.Yigeren Win10x64PE
item reboot                3.ReBoot Computer

choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}

:win864efi
set username yigeren
login
iseq ${username} yigeren || goto reboot                #登录用户名:yigeren
iseq ${password} 123456 || goto reboot                #登录密码:123456,输入错误电脑重启
kernel http://${next-server}/wimboot
initrd http://${next-server}/boot/bootx64.efi                        bootx64.efi
initrd http://${next-server}/efi/microsoft/boot/864                        864
initrd http://${next-server}/efi/microsoft/boot/fonts/chs_boot.ttf        chs_boot.ttf
initrd http://${next-server}/efi/microsoft/boot/fonts/wgl4_boot.ttf        wgl4_boot.ttf
initrd http://${next-server}/boot/boot.sdi                                boot.sdi
initrd http://${next-server}/boot/Win864PE.wim                        Win864PE.wim
boot || goto failed

PS:这个只防不懂电脑的,因为密码命令不支持MD5加密

点评

感谢分享,谢谢!!我试下。。。 另外,今天发现 几台新的 联想 启天M420-D002的机型,之前可以使用uefi引导,居然不成功。纠结中。。。  详情 回复 发表于 2019-5-23 19:33
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-4-29 22:07

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表