bác có thể tự xây dựng bằng tool của bác
nhưng có lưu ý do từ ver 27xxx nó bắt xác minh chữ ký số nên sau khi mount file wim phải add thêm file reg
và vấn đề backup and rename licenses của bác sẽ bị lỗi menu chuột phải,do vậy em copy nguyên licenses của enterG 26100,bác nghiên cứu rồi viết lại tool nhé
Mã:
rem == mount install.wim ==
dism /mount-wim /wimfile:install.wim /index:1 /mountdir:mount
rem == Packages ==
mkdir mount\Windows\servicing\Packages
copy /y mum\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.27975.1.cat mount\Windows\servicing\Packages
copy /y mum\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.27975.1.mum mount\Windows\servicing\Packages
pause
rem == Packages registry ==
Reg.exe load HKLM\SOFTHIVE mount\Windows\System32\config\SOFTWARE
Reg.exe add "HKLM\SOFTHIVE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.27975.1" /v "InstallName" /t REG_SZ /d "Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.27975.1.mum" /f
Reg.exe add "HKLM\SOFTHIVE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.27975.1" /v "CurrentState" /t REG_DWORD /d "64" /f
Reg.exe unload HKLM\SOFTHIVE
rem == backup and rename licenses folders ==
xcopy /S /E /I /H /R /Y /J mount\Windows\System32\en-US\Licenses temp\Licenses
ren temp\Licenses\_Default\Core EnterpriseG
ren temp\Licenses\OEM\Core EnterpriseG
ren temp\Licenses\Volume\Core EnterpriseG
copy /y mount\Windows\System32\OEMDefaultAssociations.xml .
copy /y mount\Windows\System32\OEMDefaultAssociations.dll .
rem == install enterpriseG and remove Core edition ==
dism /image:mount /apply-unattend:1.xml
dism /image:mount /apply-unattend:2.xml