I am trying to import install images into WDS. However I get the following error:
Import-WdsInstallImage : An install image could not be found in the image file.
At line:3 char:1
+ Import-WdsInstallImage -ImageGroup 'Win2019' -ImageName $ImageName -P ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (MSFT_WdsInstallImage:root/cimv2/MSFT_WdsInstallImage) [Import-WdsInstallImage], CimException
+ FullyQualifiedErrorId : 0xC111010E,Import-WdsInstallImage
And with WDSUTIL /Add-Image I get an error too.
I figured out that the image names I provide are wrong. I use the following command lines to get image names:
Get-WindowsImage -ImagePath X:\Sources\install.wim
or
dism /get-imageinfo /imagefile:X:\Sources\install.wim
Unfortunately both command lines are returning the same image names:
- Windows Server 2019 Standard
- Windows Server 2019 Standard (Desktop Experience)
- Windows Server 2019 Datacenter
- Windows Server 2019 Datacenter (Desktop Experience)
I finally find the right names by importing images with the WDS console, and those name must be:
- Windows Server 2019 SERVERSTANDARDCORE
- Windows Server 2019 SERVERSTANDARD
- Windows Server 2019 SERVERDATACENTERCORE
- Windows Server 2019 SERVERDATACENTERCORE
How can I find those names with the command line instead of having to import them first with the console?