Jump to content











Photo
- - - - -

Adding diskmgmt mmc to clean W11 ADK PE - what has changed?


  • Please log in to reply
No replies to this topic

#1 Atari800XL

Atari800XL

    Frequent Member

  • Advanced user
  • 192 posts
  •  
    Netherlands

Posted 28 January 2023 - 10:29 AM

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




 


  • Tokener and misty like this

#2 noel

noel

    Frequent Member

  • Advanced user
  • 178 posts
  • Location:nantes
  •  
    France

Posted 28 January 2023 - 06:20 PM

Hello Atari800XL

You know my English is very bad. I use an automatic translator. Also, forget my remarks if I did not understand anything about your problem.
You also know that I never use a builder to build my Winpe. And like all my Winpe, my latest Winpe11 is from the ADK.

I'm reformulating so you can see if I understood you.

You build a Winpe11 from the ADK, without using a "builder", only with "copype.cmd"
You add the MMC in this "boot.wim" (keys and files)
You get a BSOD when starting this winpe.

 

I read the description of the error code here:
https://learn.micros...code-reference2

The error appears to occur within the "WindowsTrustedRT.sys" driver, during startup or later.

The changed keys and files do not appear to be related to this driver.

 

My first idea: your boot.wim file is corrupted/corrupted.

Maybe it is possible to remove your additions (first the files and then the keys) in the "same" file "boot.wim" (mount/delete/unmount).

 

If I had to do the investigation on my machine, I would make a VHD mode Flat of this "Boot.wim", I would modify "crashdump" to produce a Dump file. And I would analyze with Wndbg (! Analyze).

 

I'm sure you'll get better solutions from people who are more competent than me.

Noel



#3 noel

noel

    Frequent Member

  • Advanced user
  • 178 posts
  • Location:nantes
  •  
    France

Posted 28 January 2023 - 06:21 PM

sorry i post twice....



#4 Atari800XL

Atari800XL

    Frequent Member

  • Advanced user
  • 192 posts
  •  
    Netherlands

Posted 29 January 2023 - 02:26 PM

Thank you very much for your reply, noel!!!

 

At first I didn't notice your reply, as the main index on reboot.pro was showing "0 views - 0 replies", but when I clicked on the topic, I noticed there was a reply after all.

 

You understood my question correctly, thanks again for taking the time to respond. After executing all the steps again, going one step at a time, I managed to correctly add the diskmanagement files and settings. Like you said, I must have done something wrong in my first tests, maybe I was overlooking something here or there.

 

So the problem is solved, at least now I know for sure that nothing (much) has changed in the way we can (simply) add the graphical Disk Management console to our PE. Who knows, somebody reading this might get the idea to do it as well.

 

Thanks!


  • Tokener likes this

#5 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 31 January 2023 - 09:53 PM

@Atari800XL
Thanks old friend. Your file list has helped me to trace some missing file dependencies to support diskmgmt.msc in Windows 10.0.18362 and Windows 10.0.19041 based WinPE builds. I was missing the following files -
\Windows\SystemResources\mmcbase.dll.mun
\Windows\SystemResources\mmcndmgr.dll.mun
\Windows\SystemResources\dmdskres.dll.mun
I will update my Mini-WinFE project over the next week.

My slightly reduced fileset, based on IcemanMD's fileset and the registry settings from the following thread on msfn (see https://msfn.org/boa...n-gui-in-winpe/) with additional files traced from Atari800XL's post -
 
\windows\system32\apphelp.dll
\windows\system32\dwwin.exe
\windows\system32\diskmgmt.msc
\windows\system32\mmc.exe
\windows\system32\mmcbase.dll
\windows\system32\mmcndmgr.dll
\windows\system32\mmcshext.dll
\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\hhsetup.dll
\windows\system32\en-us\dmdskres.dll.mui 
\windows\system32\en-us\dmdskres2.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 
\Windows\SystemResources\mmcbase.dll.mun
\Windows\SystemResources\mmcndmgr.dll.mun
\Windows\SystemResources\dmdskres.dll.mun
Registry dependencies - https://github.com/M...mc.registry.reg

cheers.gif

misty

#6 Humm26

Humm26
  • Members
  • 0 posts
  •  
    Canada

Posted 30 August 2023 - 05:28 PM

 

(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"

 

Hello, i try, but the install.wim in a Windows 10 installation USB not have this registries. A clue to found one with this registries or, a package available on the net with this keys?

 

Thank you


Edited by Humm26, 30 August 2023 - 05:29 PM.


#7 reboot12

reboot12

    Frequent Member

  • Advanced user
  • 287 posts
  • Interests:WinXP, Debian, OpenWrt, gPXE, iPXE, BIOS, UEFI, Coreboot, MS VirtualPC, VMware
  •  
    Poland

Posted A day ago

@misty

Can the same files and registry settings be applied to WinPE 3.1?






4 user(s) are reading this topic

0 members, 4 guests, 0 anonymous users