|
参考下面的改注册表权限的命令,在自定义(后置)中的 last.bat 添加一个修改NetworkSetup2的。
- Administrator@SLORE-PC MINGW64 /d/Dev/WimBuilder2 (master)
- $ git grep ACLRegKey
- Projects/WIN10XPE/00-Configures/Build/main.bat:call ACLRegKey Tmp_System
- Projects/WIN10XPE/00-Configures/Build/main.bat:call ACLRegKey Tmp_Software
- Projects/WIN10XPE/00-Configures/Build/main.bat:call ACLRegKey Tmp_Default
- Projects/WIN10XPE/00-Configures/Build/main.bat:rem call ACLRegKey Tmp_Drivers
- Projects/WIN10XPE/00-Configures/Build/main.bat:call ACLRegKey HKLM\Software\Classes\AppID
- Projects/WIN10XPE/00-Configures/x-Account/Admin/SwitchToAdmin.bat:rem ACLRegKey Tmp_System\ControlSet001\Services\gpsvc
- Projects/WIN10XPE/00-Configures/x-Account/Admin/SwitchToAdmin.bat:rem ACLRegKey Tmp_System\ControlSet001\Services\TrustedInstaller
- Projects/WIN10XPE/01-Components/00-Shell/WinXShell/submain.bat:call _ACLRegKey "Tmp_Software\Classes\ms-settings"
- Projects/WIN10XPE/01-Components/00-Shell/WinXShell/submain.bat:call _ACLRegKey Tmp_Software\Classes\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}
- Projects/WIN10XPE/01-Components/02-Network/_discovery.bat:call _ACLRegKey "Tmp_SYSTEM\ControlSet001\Services\FDResPub" Everyone -
- Projects/WIN10XPE/01-Components/03-Audio/main.bat: rem ACLRegKey,Tmp_Software\Microsoft\Windows\CurrentVersion\MMDevices
- Projects/WIN10XPE/01-Components/Remote Desktop/TermService.bat:call ACLRegKey "HKLM\System\ControlSet001\Control\Terminal Server\RCM"
- Projects/WIN10XPE/01-Components/Remote Desktop/TermService.bat:call _ACLRegKey "Tmp_SYSTEM\ControlSet001\Control\Terminal Server\RCM" Everyone -
- Projects/WIN10XPE/01-Components/Remote Desktop/TermService.bat:call _ACLRegKey "Tmp_SYSTEM\ControlSet001\Control\Terminal Server\RCM" "NT SERVICE\termservice" -
- Projects/WIN10XPE/01-Components/Remote Desktop/TermService.bat:call _ACLRegKey "Tmp_SYSTEM\ControlSet001\Control\Terminal Server\RCM\secrets" "Network Service" -
- lib/macros/ACLRegKey.cmd:call _ACLRegKey %*
- lib/macros/_ACLRegKey.cmd:rem MACRO:ACLRegKey RegKey [user] [owner]
- lib/macros/_ACLRegKey.cmd:echo [MACRO]ACLRegKey %*
- Administrator@SLORE-PC MINGW64 /d/Dev/WimBuilder2 (master)
- $ git grep icacls
- Projects/WIN10XPE/01-Components/Remote Desktop/TermService.bat:icacls "%X%\ProgramData\Microsoft\Crypto\RSA\MachineKeys" /grant everyone:(OI)(CI)(F)
复制代码
这个Filter的话,SYSTEM用户会删除,Admin的时候测试wifi启动没影响就保留了。
- Administrator@SK-20240826PJNJ MINGW64 /d/Dev/WimBuilder2 (master)
- $ git grep -B 2 B5F4D659
- Projects/WIN10XPE/01-Components/02-Network/_networklist.bat- call RegCopy HKLM\System\ControlSet001\Control\NetworkSetup2\Filters
- Projects/WIN10XPE/01-Components/02-Network/_networklist.bat- rem remove ms_pacer filter(QoS Packet Scheduler)
- Projects/WIN10XPE/01-Components/02-Network/_networklist.bat: reg delete HKLM\Tmp_System\ControlSet001\Control\NetworkSetup2\Filters\{B5F4D659-7DAA-4565-8E41-BE220ED60542} /f
复制代码
可能还有什么条件没搞明白吧。
last.bat中也可以删除。
|
|