|
本帖最後由 maodou 於 2021-10-28 01:26 編輯
可以不用SetupComplete.cmd
把下面的code存成autounattend.xml, 放在跟Windows 11的setup.exe同一個目錄底下安裝:- <?xml version="1.0" encoding="utf-8"?>
- <unattend xmlns="urn:schemas-microsoft-com:unattend">
- <settings pass="windowsPE">
- <component name="Microsoft-Windows-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">
- <UserData>
- <ProductKey>
- <WillShowUI>Always</WillShowUI>
- </ProductKey>
- </UserData>
- </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">
- <FirstLogonCommands>
- <SynchronousCommand wcm:action="add">
- <Order>1</Order>
- <Description>Set Windows 11 to use classic context menu</Description>
- <CommandLine>cmd /c reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve & taskkill /f /im explorer.exe & start explorer.exe & timeout /t 10</CommandLine>
- </SynchronousCommand>
- </FirstLogonCommands>
- </component>
- </settings>
- </unattend>
複製代碼 |
|