目前测试WIN10的封装模式完全可以符合W11的无人值守安装,只是需要做一点小调整,X86和X64不要混用。
贴出一些优化小脚本,后续WIN11正式版会集中优化,感兴趣的可以自己折腾下:
无人值守安装部分:
- <?xml version="1.0" encoding="utf-8"?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="specialize">
- <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <RunSynchronous>
- <RunSynchronousCommand wcm:action="add">
- <Description>install</Description>
- <Order>1</Order>
- <Path>%WinDir%\Setup\Scripts\XX.exe</Path>
- </RunSynchronousCommand>
- </RunSynchronous>
- </component>
- </settings>
- <settings pass="oobeSystem">
- <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <OOBE>
- <SkipMachineOOBE>true</SkipMachineOOBE>
- <SkipUserOOBE>false</SkipUserOOBE>
- </OOBE>
- <AutoLogon>
- <Enabled>true</Enabled>
- <LogonCount>1</LogonCount>
- <Username>Administrator</Username>
- </AutoLogon>
- <TimeZone>China Standard Time</TimeZone>
- </component>
- </settings>
- </unattend>
复制代码 将下列代码复制保存为reg即可:S-1-5-21-2668958376-738706159-519669389-500 部分请修改为自己电脑生成的新用户名才会生效:
- Windows Registry Editor Version 5.00
- ; 任务栏居左,关闭Wgeit,多任务,
- [HKEY_USERS\S-1-5-21-2668958376-738706159-519669389-500\Software\Microsoft\Windows\CurrentVersion\ActivityDataModel\ReaderRevisionInfo]
- "8E3FBC8C-4900-2D8C-0E1E-8478CA3A6CD1"=hex(7):31,00,38,00,30,00,7B,0A,20,20,20,\
- 22,44,61,74,61,62,61,73,65,49,6E,73,74,61,6E,63,65,49,64,22,20,3A,20,32,39,\
- 39,31,38,2C,0A,20,20,20,22,53,65,71,75,65,6E,63,65,22,20,3A,20,32,32,34,2C,\
- 0A,20,20,20,22,61,63,74,69,76,69,74,79,53,74,6F,72,65,49,64,22,20,3A,20,22,\
- 38,45,33,46,42,43,38,43,2D,34,39,30,30,2D,32,44,38,43,2D,30,45,31,45,2D,38,\
- 34,37,38,43,41,33,41,36,43,44,31,22,2C,0A,20,20,20,22,66,69,6C,74,65,72,22,\
- 20,3A,20,7B,0A,20,20,20,20,20,20,22,69,73,52,65,61,64,46,69,6C,74,65,72,22,\
- 20,3A,20,30,2C,0A,20,20,20,20,20,20,22,6F,72,69,67,69,6E,46,69,6C,74,65,72,\
- 4B,65,79,22,20,3A,20,30,2C,0A,20,20,20,20,20,20,22,73,74,61,74,65,46,69,6C,\
- 74,65,72,4B,65,79,22,20,3A,20,30,2C,0A,20,20,20,20,20,20,22,75,73,65,72,41,\
- 63,74,69,6F,6E,53,74,61,74,65,46,69,6C,74,65,72,22,20,3A,20,30,0A,20,20,20,\
- 7D,0A,7D,0A,00,00
- [HKEY_USERS\S-1-5-21-2668958376-738706159-519669389-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
- "ShowTaskViewButton"=dword:00000000
- "TaskbarAl"=dword:00000000
- "TaskbarDa"=dword:00000000
- ; 桌面右键恢复常规菜单
- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FeatureManagement\Overrides\4\586118283]
- "EnabledState"=dword:00000001
- "EnabledStateOptions"=dword:00000001
- "Variant"=dword:00000000
- "VariantPayload"=dword:00000000
- "VariantPayloadKind"=dword:00000000
复制代码 |
|