I tend to use pretty basic and "clean" ADK PEs, but I do usually add the graphical Disk Management MMC, not because I can't do disk tasks with diskpart, but because adding Diskmgmt.msc usually pretty easy, and only involves a few steps (see below).
I only recently tried this with the W11 ADK PE, and I get a boot error after I did these steps (other modifications to the registry seem to work fine, so I don't know what's wrong here). This is the boot error:
"File: \windows\system32\drivers\WindowsTrustedRT.sys - Error code: 0xc000000f"
I must be overlooking something here, do any of you know what's going wrong/ what has changed here?
Thanks!
Here are the tried and tested steps I always take to add Diskmgmt.msc:
(1) Copy these registry settings from a full install.wim to pe boot.wim:
"hklm\pe_soft\classes\mscfile"
"hklm\pe_soft\classes\.msc"
"hklm\pe_soft\microsoft\internet explorer"
"hklm\pe_soft\microsoft\internet explorer\activex compatibility"
"hklm\pe_soft\microsoft\MMC"
(2) Copy these files from full install.wim to to boot.wim:
\windows\system32\devmgmt.msc
\windows\system32\devmgr.dll
\windows\system32\diskmgmt.msc
\windows\system32\dmdlgs.dll
\windows\system32\dmdskmgr.dll
\windows\system32\dmdskres.dll
\windows\system32\dmdskres2.dll
\windows\system32\dmintf.dll
\windows\system32\dmocx.dll
\windows\system32\dmutil.dll
\windows\system32\dmvdsitf.dll
\windows\system32\dmview.ocx
\windows\system32\mmc.exe
\windows\system32\mmcbase.dll
\windows\system32\mmcndmgr.dll
\windows\system32\mmcshext.dll
\Windows\SystemResources\mmcbase.dll.mun
\Windows\SystemResources\mmcndmgr.dll.mun
\Windows\SystemResources\dmdskres.dll.mun
\windows\system32\en-US\devmgmt.msc
\windows\system32\en-US\devmgr.dll.mui
\windows\system32\en-US\diskmgmt.msc
\windows\system32\en-US\dmdskres.dll.mui
\windows\system32\en-US\dmdskres2.dll.mui
\windows\system32\en-US\dmocx.dll.mui
\windows\system32\en-US\dmutil.dll.mui
\windows\system32\en-US\mmc.exe.mui
\windows\system32\en-US\mmcbase.dll.mui
\windows\system32\en-US\mmcndmgr.dll.mui
\windows\system32\en-US\mmcshext.dll.mui