export-windowsimage W11 22H2 fails?

831 views
Skip to first unread message

Markus Klocker

unread,
Sep 27, 2022, 3:23:18 AM9/27/22
to ntsys...@googlegroups.com
Dear all,

I'm a bit at loss here :)
I want to export only the SKU named "Windows 11 Enterprise" in an
elevated PS-Session from the W11 22H2 install.wim.
Export-WindowsImage -SourceImagePath $SourceImage -SourceName "Windows
11 Enterprise" -DestinationImagePath $TargetImage

The dism.log on a W10 21H2 fully patched tells me:
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: <-----
Starting Dism.exe session ----->
2022-09-27 09:13:53, Info                  DISM   DISM.EXE:
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Host machine
information: OS Version=10.0.19044, Running architecture=amd64, Number
of processors=16
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Dism.exe
version: 10.0.19041.844
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Executing
command line: "C:\Windows\system32\Dism.exe" /Get-ImageInfo
/imagefile:C:\wim\install.wim
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Getting the collection of providers from a local
provider store type. - CDISMProviderStore::GetProviderCollection
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Connecting to the provider located at
C:\Windows\system32\Dism\FolderProvider.dll. -
CDISMProviderStore::Internal_LoadProvider
2022-09-27 09:13:53, Warning               DISM   DISM Provider Store:
PID=12692 TID=14808 Failed to load the provider:
C:\Windows\system32\Dism\SiloedPackageProvider.dll. -
CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Connecting to the provider located at
C:\Windows\system32\Dism\FfuProvider.dll. -
CDISMProviderStore::Internal_LoadProvider
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Connecting to the provider located at
C:\Windows\system32\Dism\WimProvider.dll. -
CDISMProviderStore::Internal_LoadProvider
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Connecting to the provider located at
C:\Windows\system32\Dism\VHDProvider.dll. -
CDISMProviderStore::Internal_LoadProvider
2022-09-27 09:13:53, Info                  DISM   DISM Provider Store:
PID=12692 TID=14808 Connecting to the provider located at
C:\Windows\system32\Dism\ImagingProvider.dll. -
CDISMProviderStore::Internal_LoadProvider
2022-09-27 09:13:53, Warning               DISM   DISM Provider Store:
PID=12692 TID=14808 Failed to load the provider:
C:\Windows\system32\Dism\MetaDeployProvider.dll. -
CDISMProviderStore::Internal_GetProvider(hr:0x8007007e)
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Got the
collection of providers. Now enumerating them to build the command table.
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: DISM Log Provider
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: FolderManager
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: FfuManager
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Succesfully
registered commands for the provider: FfuManager.
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: WimManager
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Succesfully
registered commands for the provider: WimManager.
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: VHDManager
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Attempting
to add the commands from provider: GenericImagingManager
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Succesfully
registered commands for the provider: GenericImagingManager.
2022-09-27 09:13:53, Info                  DISM   DISM Imaging Provider:
PID=12692 TID=14808 WIM image specified -
CGenericImagingManager::GetImageInfoCollection
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: Image
session has been closed. Reboot required=no.
2022-09-27 09:13:53, Info                  DISM   DISM.EXE:
2022-09-27 09:13:53, Info                  DISM   DISM.EXE: <-----
Ending Dism.exe session ----->

relevant Part from a W11 21H2 fully patched:
022-09-27 09:19:10, Info                  DISM   DISM Manager: PID=5412
TID=13836 Successfully created the local image session and provider
store. - CDISMManager::CreateLocalImageSession
2022-09-27 09:19:10, Info                  DISM   DISM FFU Provider:
PID=5412 TID=13836 [C:\wim\mount] is not recognized by the DISM FFU
provider. - CFfuImage::Initialize
2022-09-27 09:19:10, Info                  DISM   DISM Imaging Provider:
PID=5412 TID=13836 The provider FfuManager does not support
CreateDismImage on C:\wim\mount - CGenericImagingManager::CreateDismImage
2022-09-27 09:19:10, Info                  DISM   DISM VHD Provider:
PID=5412 TID=13836 [C:\wim\mount] is not recognized by the DISM VHD
provider. - CVhdImage::Initialize
2022-09-27 09:19:10, Info                  DISM   DISM Imaging Provider:
PID=5412 TID=13836 The provider VHDManager does not support
CreateDismImage on C:\wim\mount - CGenericImagingManager::CreateDismImage
[5412.13836] [0x80070002] FIOReadFileIntoBuffer:(1456): The system
cannot find the file specified.
[5412.13836] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
[5412.13836] [0xc142011c] WIMGetMountedImageHandle:(2910)
2022-09-27 09:19:10, Info                  DISM   DISM WIM Provider:
PID=5412 TID=13836 [C:\wim\mount] is not a WIM mount point. -
CWimMountedImageInfo::Initialize
2022-09-27 09:19:10, Info                  DISM   DISM Imaging Provider:
PID=5412 TID=13836 The provider WimManager does not support
CreateDismImage on C:\wim\mount - CGenericImagingManager::CreateDismImage
2022-09-27 09:19:10, Info                  DISM   DISM Imaging Provider:
PID=5412 TID=13836 No imaging provider supported CreateDismImage for
this path - CGenericImagingManager::CreateDismImage
[5412.13836] [0x80070002] FIOReadFileIntoBuffer:(1456): The system
cannot find the file specified.
[5412.13836] [0xc142011c] UnmarshallImageHandleFromDirectory:(641)
[5412.13836] [0xc142011c] WIMGetMountedImageHandle:(2910)
2022-09-27 09:19:10, Info                  DISM   DISM WIM Provider:
PID=5412 TID=13836 [C:\wim\mount] is not a WIM mount point. -
CWimMountedImageInfo::Initialize
2022-09-27 09:19:10, Info                  DISM   DISM FFU Provider:
PID=5412 TID=13836 [C:\wim\mount] is not recognized by the DISM FFU
provider. - CFfuImage::Initialize
2022-09-27 09:19:10, Info                  DISM   DISM VHD Provider:
PID=5412 TID=13836 [C:\wim\mount] is not recognized by the DISM VHD
provider. - CVhdImage::Initialize
2022-09-27 09:19:10, Error                 DISM   API: PID=5412
TID=13836
onecore\base\ntsetup\opktools\dism\api\lib\imagingcommandobject.cpp:668
- CUnmountImageCommandObject::InternalExecute(hr:0xc0040007)
2022-09-27 09:19:10, Error                 DISM   API: PID=5412
TID=13836 InternalExecute failed -
CBaseCommandObject::Execute(hr:0xc0040007)
2022-09-27 09:19:10, Error                 DISM   API: PID=5412 TID=7480
CUnmountImageCommandObject failed - DismUnmountImageInternal(hr:0xc0040007)

No luck in exporting the wanted SKU.
Any hints or ideas?

Best whishes
    Markus

Michael B. Smith

unread,
Sep 27, 2022, 9:58:11 AM9/27/22
to ntsys...@googlegroups.com
Does this work? (D: is the Win11 2022 ISO, mounted.)

dism.exe /Get-ImageInfo /imagefile:"D:\sources\install.wim"

Update the path as necessary.

Then the export from the 2022 ISO:

dism.exe /Export-Image /SourceImageFile:"D:\sources\install.wim" /SourceIndex:3 /DestinationImageFile:.\Win11-2022.wim

I ran this from Win11 21H2, fully patched, and it worked ok.

Thanks.

Regards,
Michael B. Smith
Managing Consultant
Smith Consulting, LLC
--
You received this message because you are subscribed to the Google Groups "ntsysadmin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ntsysadmin+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ntsysadmin/82af4671-59c6-579d-f1c9-2df4c403d120%40univie.ac.at.

Markus Klocker

unread,
Sep 28, 2022, 1:43:36 AM9/28/22
to ntsys...@googlegroups.com
cmdlet and dism work
Did mess up my script :(
Sorry to bother you.

    Markus
Reply all
Reply to author
Forward
0 new messages