系統(tǒng)運(yùn)維
由于工作需要,經(jīng)常要安裝系統(tǒng)并有多國語言的要求,現(xiàn)在以英文和中文(en-us/zh-cn)為例,手工制作一個(gè)包括多語言的windows 安裝光盤(U盤):
創(chuàng)新互聯(lián)建站服務(wù)項(xiàng)目包括鎮(zhèn)康網(wǎng)站建設(shè)、鎮(zhèn)康網(wǎng)站制作、鎮(zhèn)康網(wǎng)頁制作以及鎮(zhèn)康網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢(shì)、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,鎮(zhèn)康網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到鎮(zhèn)康省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!?
1.下載最新的Windows ADK:
https://docs.microsoft.com/zh-cn/windows-hardware/get-started/adk-install
最新的為 windows 10 1809
?
下載安裝adk:
選擇以下兩項(xiàng)就夠用:
接下來安裝ADKWinPEAddons:
運(yùn)行:adkwinpesetup.exe
直到安裝完成:
?
以管理員身份運(yùn)行:
接下來準(zhǔn)備一張英文版的Windows安裝光盤(以最新windows 10 :Win10_1809Oct_English_x32.iso為例)
下載最新的系統(tǒng)盤可以到:https://tb.rg-adguard.net/public.php
如果以后要安裝32位的windows,就必須以32位的為模板,因?yàn)?2位的boot.wim既能安裝32位又能安裝x64系統(tǒng).
準(zhǔn)備必要的目錄:
Mkdir C:\\m\\mount\\windows
Mkdir C:\\m\\mount\\winre
Mkdir C:\\m\\mount\\boot
Mkdir C:\\m\\LanguagePack\\en-us
Mkdir C:\\m\\LanguagePack\\zh-cn
Mkdir C:\\m\\my_Distribution
Mkdir C:\\m\\wim\\win10pro
Mkdir C:\\m\\wim\\win10ent
Mkdir C:\\m\\wim\\win7pro
Mkdir C:\\m\\wim\\win7ent
Mkdir C:\\m\\wim\\win7ult
Mkdir C:\\m\\hotfix\\win10_1809
Mkdir C:\\m\\hotfix\\win7sp2
?
將 en-US Windows DVD 的所有內(nèi)容復(fù)制到 C:\\m\\my_distribution
xcopy F:\\ C:\\m\\my_distribution /s /e
Dism /Get-ImageInfo /ImageFile:C:\\m\\my_distribution\\sources\\install.wim
導(dǎo)出需要的win10 pro:
dism /Export-Image /SourceImageFile:C:\\m\\my_distribution\\sources\\install.wim /SourceIndex:6 /DestinationImageFile:C:\\m\\wim\\win10pro\\install.wim
?
Dism /Get-ImageInfo /ImageFile:C:\\m\\wim\\win10pro\\install.wim
?
xcopy C:\\m\\wim\\win10pro\\install.wim C:\\m\\my_distribution\\sources\\install.wim
Dism /Get-ImageInfo /ImageFile:C:\\m\\my_distribution\\sources\\install.wim
Dism /Mount-Image /ImageFile:C:\\m\\my_distribution\\sources\\install.wim /Index:1 /MountDir:C:\\m\\mount\\windows
Dism /Mount-Image /ImageFile:C:\\m\\mount\\windows\\Windows\\System32\\recovery\\winre.wim /Index:1 /MountDir:C:\\m\\mount\\winre
?
Dism /Add-Package /image:C:\\m\\mount\\windows /PackagePath:C:\\m\\LanguagePack\\zh-cn\\Microsoft-Windows-Client-Language-Pack_x86_zh-cn.cab
Dism /Add-Package /image:C:\\m\\mount\\windows /PackagePath:C:\\m\\hotfix\\win10_1809\\windows10.0-kb4467708-x86.msu
Dism /image:C:\\m\\mount\\windows /set-allIntl:zh-cn /Set-TimeZone:China Standard Time
Dism /image:C:\\m\\mount\\windows /gen-langini /distribution:C:\\m\\my_distribution
Dism /image:C:\\m\\mount\\windows /get-intl /distribution:C:\\m\\my_distribution
?
Dism /image:C:\\m\\mount\\winre /Add-Package /PackagePath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\zh-cn\\lp.cab
?
X64:
Dism /image:C:\\m\\mount\\winre /Add-Package /PackagePath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\zh-cn\\lp.cab
?
Dism /image:C:\\m\\mount\\winre /set-allIntl:zh-cn /Set-TimeZone:China Standard Time
Dism /image:C:\\m\\mount\\winre /get-intl
DISM /unmount-image /mountdir:C:\\m\\mount\\winre /commit
DISM /unmount-image /mountdir:C:\\m\\mount\\windows /commit
?
2.將語言包添加到 Windows 安裝程序:
1)使用 DISM 裝載 Boot.wim 文件的索引 2 :
Dism /Mount-Image /ImageFile:C:\\m\\my_distribution\\sources\\boot.wim /Index:2 /MountDir:C:\\m\\mount\\boot
2)針對(duì)每一種要支持的語言,將 Windows PE 語言包和 Windows 安裝程序可選組件添加到已裝載的映像中:
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\zh-cn\\lp.cab
x64:
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\zh-cn\\lp.cab
?
3)添加 Windows PE 安裝程序可選組件:
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\WinPE-FontSupport-ZH-CN.cab
DISM /add-package /image:C:\\m\\mount\\boot /PackagePath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\WinPE-Setup.cab
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\zh-cn\\WinPE-Setup_zh-cn.cab
DISM /add-package /image:C:\\m\\mount\\boot /PackagePath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\WinPE-Setup-client.cab
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\x86\\WinPE_OCs\\zh-cn\\WinPE-Setup-Client_zh-cn.cab
x64:
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\WinPE-FontSupport-ZH-CN.cab
DISM /add-package /image:C:\\m\\mount\\boot /PackagePath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\WinPE-Setup.cab
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\zh-cn\\WinPE-Setup_zh-cn.cab
DISM /add-package /image:C:\\m\\mount\\boot /PackagePath:C:\\m\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\WinPE-Setup-client.cab
DISM /add-package /image:C:\\m\\mount\\boot /packagepath:C:\\m\\Program Files (x86)\\Windows Kits\\10\\Assessment and Deployment Kit\\Windows Preinstallation Environment\\amd64\\WinPE_OCs\\zh-cn\\WinPE-Setup-Client_zh-cn.cab
?
? (注意:這些 Windows 安裝程序語言包僅適用于客戶端版本的 Windows。對(duì)于 Windows Server,你必須使用 winpe-setup-server.cab 文件。)
?
4)將zh-cn的Windows安裝盤中的zh-cn目錄copy 到C:\\m\\my_distribution\\sources:
Mkdir C:\\m\\my_distribution\\sources\\zh-cn
xcopy h:\\sources\\zh-cn C:\\m\\my_distribution\\sources\\zh-cn /cherkyi
Dism /image:C:\\m\\mount\\boot /set-allIntl:zh-cn /Set-TimeZone:China Standard Time
Dism /image:C:\\m\\mount\\boot /Get-Intl
Dism /Unmount-image /MountDir:C:\\m\\mount\\boot /Commit
?
3.在Windows安裝盤中集成winPE:
將windows distibution 中的bcd復(fù)制到c:\\m\\bcd下:
xcopy? C:\\m\\my_Distribution\\boot\\bcd c:\\m\\bcd\\
將winpe iso 文件中boot.sdi 復(fù)制到c:\\m\\bcd下并改名為peboot.sdi
bcdedit /store c:\\m\\bcd\\bcd /v
bcdedit /store c:\\m\\bcd\\bcd /timeout 60
bcdedit /store c:\\m\\bcd\\bcd /create {ramdiskoptions}
bcdedit /store c:\\m\\bcd\\bcd /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store c:\\m\\bcd\\bcd /set {ramdiskoptions} ramdisksdipath \\boot\\peboot.sdi
?
bcdedit /store c:\\m\\bcd\\bcd /create {e18d7416-d8dc-11e8-88da-701ce7e35f75} /d WinPE x64 /application osloader
bcdedit /store c:\\m\\bcd\\bcd /displayorder {e18d7416-d8dc-11e8-88da-701ce7e35f75} /addfirst
bcdedit /store c:\\m\\bcd\\bcd /default {e18d7416-d8dc-11e8-88da-701ce7e35f75}
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} device ramdisk=[boot]\\sources\\pe64.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} path?? \\windows\\system32\\boot\\winload.exe
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} description WinPE x64
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} locale zh-CN
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} osdevice ramdisk=[boot]\\sources\\pe64.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} systemroot \\windows
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} detecthal Yes
bcdedit /store c:\\m\\bcd\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} winpe Yes
bcdedit /store c:\\m\\bcd\\bcd /create {d2cd2978-05fc-11e5-a17e-18a905d696d5} /d WinPE x86 /application osloader
bcdedit /store c:\\m\\bcd\\bcd /displayorder {d2cd2978-05fc-11e5-a17e-18a905d696d5} /addfirst
bcdedit /store c:\\m\\bcd\\bcd /default {d2cd2978-05fc-11e5-a17e-18a905d696d5}
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} device ramdisk=[boot]\\sources\\pe32.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} path?? \\windows\\system32\\boot\\winload.exe
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} description WinPE x86
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} osdevice ramdisk=[boot]\\sources\\pe32.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} locale zh-CN
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} systemroot \\windows
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} detecthal Yes
bcdedit /store c:\\m\\bcd\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} winpe Yes
bcdedit /store c:\\m\\bcd\\bcd /v
?
xcopy C:\\m\\my_Distribution\\efi\\microsoft\\boot\\bcd? c:\\m\\bcd\\efi\\bcd
bcdedit /store c:\\m\\bcd\\efi\\bcd /v
bcdedit /store c:\\m\\bcd\\efi\\bcd /timeout 60
bcdedit /store c:\\m\\bcd\\efi\\bcd /create {ramdiskoptions}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {ramdiskoptions} ramdisksdidevice boot
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {ramdiskoptions} ramdisksdipath \\boot\\peboot.sdi
?
bcdedit /store c:\\m\\bcd\\efi\\bcd /create {e18d7416-d8dc-11e8-88da-701ce7e35f75} /d WinPE x64 /application osloader
bcdedit /store c:\\m\\bcd\\efi\\bcd /displayorder {e18d7416-d8dc-11e8-88da-701ce7e35f75} /addfirst
bcdedit /store c:\\m\\bcd\\efi\\bcd /default {e18d7416-d8dc-11e8-88da-701ce7e35f75}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} device ramdisk=[boot]\\sources\\pe64.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} path?? \\windows\\system32\\boot\\winload.efi
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} description WinPE x64
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} locale zh-CN
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} osdevice ramdisk=[boot]\\sources\\pe64.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} systemroot \\windows
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} detecthal Yes
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {e18d7416-d8dc-11e8-88da-701ce7e35f75} winpe Yes
bcdedit /store c:\\m\\bcd\\efi\\bcd /create {d2cd2978-05fc-11e5-a17e-18a905d696d5} /d WinPE x86 /application osloader
bcdedit /store c:\\m\\bcd\\efi\\bcd /displayorder {d2cd2978-05fc-11e5-a17e-18a905d696d5} /addfirst
bcdedit /store c:\\m\\bcd\\efi\\bcd /default {d2cd2978-05fc-11e5-a17e-18a905d696d5}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} device ramdisk=[boot]\\sources\\pe32.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} path?? \\windows\\system32\\boot\\winload.efi
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} description WinPE x86
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} osdevice ramdisk=[boot]\\sources\\pe32.wim,{ae5534e0-a924-466c-b836-758539a3ee3a}
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} locale zh-CN
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} systemroot \\windows
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} detecthal Yes
bcdedit /store c:\\m\\bcd\\efi\\bcd /set {d2cd2978-05fc-11e5-a17e-18a905d696d5} winpe Yes
bcdedit /store c:\\m\\bcd\\efi\\bcd /v
?
xcopy c:\\m\\bcd\\bcd? C:\\m\\my_Distribution\\boot\\bcd /y
xcopy c:\\m\\bcd\\peboot.sdi C:\\m\\my_Distribution\\boot\\ /y
xcopy c:\\m\\bcd\\efi\\bcd c:\\m\\my_Distribution\\efi\\microsoft\\boot\\? /y
?
dism /Export-Image /SourceImageFile:E:\\wim\\win7pro\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\win10pro\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\win10ltsb\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\win10ent_ltsc2019\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\win2008r2sp1\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\winsvr2012r2\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\winsvr2016\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Export-Image /SourceImageFile:E:\\wim\\winsvr2019\\install.wim /SourceIndex:1 /DestinationImageFile:C:\\m\\my_Distribution\\sources\\install.wim
dism /Get-ImageInfo /ImageFile:C:\\m\\my_Distribution\\sources\\install.wim
分享名稱:howtomakemilt-LangwindowsinstallerAllin1
鏈接URL:http://jinyejixie.com/article26/cjcdcg.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、關(guān)鍵詞優(yōu)化、微信小程序、小程序開發(fā)、標(biāo)簽優(yōu)化、App開發(fā)
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)