update for Windows 11 modern skin

This commit is contained in:
slore 2023-09-05 21:30:35 +08:00
parent ae45ebee8c
commit cb5a786d37
2 changed files with 20 additions and 1 deletions

View File

@ -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

View File

@ -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