mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
update for Windows 11 modern skin
This commit is contained in:
parent
ae45ebee8c
commit
cb5a786d37
@ -21,7 +21,12 @@ if not exist X:\Windows\explorer.exe (
|
||||
)
|
||||
|
||||
reg add "%regkey%\SpecialAccounts\UserList" /v Guest /t REG_DWORD /d 0 /f
|
||||
|
||||
if exist X:\Windows\System32\AppxSysprep.dll (
|
||||
reg add "%regkey%" /v EnableSIHostIntegration /t REG_DWORD /d 1 /f
|
||||
) else (
|
||||
reg add "%regkey%" /v EnableSIHostIntegration /t REG_DWORD /d 0 /f
|
||||
)
|
||||
|
||||
rem -- // REGI HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-18\ProfileImagePath=X:\Users\Administrator
|
||||
|
||||
@ -37,6 +42,19 @@ sc start seclogon
|
||||
|
||||
if exist "%WinDir%\System32\PreCreateAdminProfile.bat" call PreCreateAdminProfile.bat
|
||||
|
||||
if exist X:\Windows\System32\AppxSysprep.dll (
|
||||
reg add HKEY_LOCAL_MACHINE\SYSTEM\Setup /v SystemSetupInProgress /t REG_DWORD /d 0 /f
|
||||
sc start SENS
|
||||
sc start CoreMessagingRegistrar
|
||||
sc start UserManager
|
||||
sc start BrokerInfrastructure
|
||||
sc start StateRepository
|
||||
sc start Schedule
|
||||
sc start AppReadiness
|
||||
rem sc stop DsmSvc
|
||||
)
|
||||
start /wait "System Init" "X:\Program Files\WinXShell\WinXShell.exe" -code WinPE:SystemInit()
|
||||
|
||||
echo Ready to logon ...
|
||||
tsdiscon.exe
|
||||
goto :EOF
|
||||
|
@ -46,6 +46,7 @@ rem update wim with SlimPatch.txt
|
||||
|
||||
echo Wimlib Cleanup and reduce Winre.wim
|
||||
wimlib-imagex.exe update "%WB_BASE_PATH%" %WB_BASE_INDEX% < "%WB_TMP_PATH%\SlimPatch.txt"
|
||||
if not exist "%X_WIN%\WinSxS\Catalogs\" mkdir "%X_WIN%\WinSxS\Catalogs"
|
||||
goto :EOF
|
||||
|
||||
:REMOVE_MUI
|
||||
|
Loading…
x
Reference in New Issue
Block a user