請選擇 進入手機版 | 繼續訪問電腦版

NoName Team 電腦資訊討論區

 找回密碼
 我要註冊
搜索
查看: 191|回復: 3

[問題] 請問使用 DISM + ADK 建立 PE 加上 GUI 圖形步驟

[複製鏈接]
發表於 2019-2-26 10:50:08 | 顯示全部樓層 |閱讀模式
本帖最後由 welkin 於 2019-3-4 08:34 編輯

實在是不得已才發問
在 goolgle 找了無數次
對岸的無憂也是
加上最近要電話認證~!我不行!

使用標準 ADK + 1809 版本 => 建立的 PE 總是不順手
可是又想要建立符合自己的簡易版本
實在是不太想用現有整合過的

網路上 DISM 控制的步驟 很多都嘗試過了
可是不曉得是哪個環節錯誤
或許是版本差異?
總是無法成功建立含有檔案總管的標準圖形 PE

想問問這裡的大神可以提供建議或方向嗎?


已下為我的步驟(簡易)

Step 1
安裝 1809 ADK

Step 2
使用 腳本 建立 PE

set WORKDIR=C:\WINPE
set SYSARCH=amd64
set DISMDIR=C:\Program Files (x86)\Windows Kits\10
set AADKDIR=%DISMDIR%\Assessment and Deployment Kit
set ROOTDIR=%AADKDIR%\Windows Preinstallation Environment\%SYSARCH%\WinPE_OCs
call "%AADKDIR%\Deployment Tools\DandISetEnv.bat"


copype %SYSARCH% %WORKDIR%
rem //------------------------------------------------------
Dism /Mount-Image /ImageFile:"%WORKDIR%\media\sources\boot.wim" /index:1 /MountDir:"%WORKDIR%\mount"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\lp.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-HTA.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-WMI.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-NetFX.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-Scripting.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-PowerShell.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-StorageWMI.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-DismCmdlets.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-Font Support-ZH-TW.cab"

Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\lp.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-HTA_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-WMI_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-NetFX_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-Scripting_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-PowerShell_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-StorageWMI_zh-tw.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\zh-tw\WinPE-DismCmdlets_zh-tw.cab"

Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\lp.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-WMI_en-us.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-NetFX_en-us.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-Scripting_en-us.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-PowerShell_en-us.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-StorageWMI_en-us.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\en-us\WinPE-DismCmdlets_en-us.cab"

Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-MDAC.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-FMAPI.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-Fonts-Legacy.cab"Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-GamingPeripherals.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-Dot3Svc.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-PPPoE.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-RNDIS.cab"
Dism /Add-Package /Image:"%WORKDIR%\mount" /PackagePath:"%ROOTDIR%\WinPE-WDS-Tools.cab"


Dism /image:"%WORKDIR%\mount" set-scratchspace:128
Dism /image:"%WORKDIR%\mount" /set-allintl:zh-tw
Dism /image:"%WORKDIR%\mount" /set-uilang:zh-tw
Dism /image:"%WORKDIR%\mount" /set-syslocale:zh-tw
Dism /image:"%WORKDIR%\mount" /set-userlocale:zh-tw
Dism /image:"%WORKDIR%\mount" /set-inputlocale:0404:{B115690A-EA02-48D5-A231-E3578D2FDF80}{B2F9C502-1742-11D4-9790-0080C882687E}
Dism /image:"%WORKDIR%\mount" /set-timezone:"Taipei Standard Time"
Dism /Unmount-Image /MountDir:"%WORKDIR%\mount" /commit
rem //------------------------------------------------------
MakeWinPEMedia /ISO %WORKDIR% C:\PEX.iso


以上為失敗案例

請大神提攜
----------------------------------------

謝謝 阿達金田一 & due6911 的解說








發表於 2019-2-26 13:45:40 | 顯示全部樓層
先說一下...我是沒用過 ADK
但是...依 goolge 的到的資料
adk 那些只是功能包...然後看 adk pack 的檔名...沒一個和 explorer 有關
都是對 PE 加入一些功能或支援 ... (像 PPPoE PowerShell )

然後 google 找的到資料....就算一樣是用 adk 搞 PE
加入 explorer 也都還是手動
(只是加入 explorer 前...都先建議用 adk 加入一部份的 pack
http://wuyou.net/forum.php?mod=viewthread&tid=209077

發表於 2019-2-26 13:49:22 | 顯示全部樓層
本帖最後由 due6911 於 2019-2-26 13:51 編輯

小弟不才增加不出GUI介面出來
只有生成原始Win PE 來進行Powershell部屬Image配置文件
需要GUI的相關元件似乎很多
目前還找不到完整的資料可以參考來進行實作

cls
@echo off
#依照所需系統安裝Windows ADK Tools
#建立全新PE系統
echo  Establish Windows PE Image
copype amd64 C:\WinPE_amd64

#掛接 Windows PE 映像
echo Mount the Windows PE Image
Dism /Mount-Image /ImageFile:"c:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"c:\WinPE_amd64\mount"
#d:\WinPE_amd64 實際路徑去指定

#新增選用元件or套件or.cab檔案
echo Add components
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-WMI_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFx.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-NetFx_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-Scripting_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-PowerShell.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-PowerShell_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-DismCmdlets.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-DismCmdlets_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-SecureBootCmdlets.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-SecureBootCmdlets_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-StorageWMI.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-StorageWMI_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-HTA.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-HTA_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-MDAC.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-MDAC_en-us.cab"

Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-DOT3SVC.cab"
Dism /Add-Package /Image:"C:\WinPE_amd64\mount" /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\en-us\WinPE-DOT3SVC_en-us.cab"

#修改暫存空間 太小會造成不穩定
dism /image:C:\WinPE_amd64\mount /Set-ScratchSpace:512

#卸載 Windows PE 映像
echo UnMount the Windows PE Image
Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit

#匯出 Windows PE ISO
echo Add Windows PE Image ISO
MakeWinPEMedia /ISO C:\WinPE_amd64 C:\WinPE_amd64\Win10PE.iso
發表於 2019-3-11 05:48:49 | 顯示全部樓層
本帖最後由 phantomuser 於 2019-3-11 05:50 編輯

可以參考下列網頁,多年前看到的,
給winpe添加explorer教程(上):基礎知識及explorer的初步加入
http://www.wingwy.com/archives/2011_02_857.html

給winpe添加explorer教程(續):文件列表
http://www.wingwy.com/archives/2011_03_868.html

給winpe添加explorer教程(下):explorer的完善設置與其他討論
http://www.wingwy.com/archives/2011_02_862.html

雖然他是WIN7PE,但原理大致相同。

基本的explorer運行並不需要任何協力廠商程式的加入或是對微軟的檔進行任何修改。
只要添加了支援explorer運行的檔,配置好了註冊表,就可以在winpe中正常運行explorer了。

其中檔的加入部分可以參考別人已做好的WIN10PE

您需要登錄後才可以回帖 登錄 | 我要註冊

本版積分規則

小黑屋|手機版|NoName Team 電腦資訊討論區 |網站地圖

GMT+8, 2019-3-20 03:27 , Processed in 0.212211 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回復 返回頂部 返回列表