Import-OSMedia Automation

As long as you know the ImageIndex, ImageName, or the EditionId of the Windows Image that you want to import, you can automate Import-OSMedia with the SkipGrid parameter

ImageIndex

Odds are you won't know the exact ImageIndex, so this will probably not get used that often, but its here!

Import-OSMedia -ImageIndex 7 -SkipGrid

ImageName

You have several options for ImageName that can be used, so make sure you use a valid option

Import-OSMedia
Import-OSMedia -ImageName 'Windows 10 Enterprise' -SkipGrid

EditionID

Import-OSMedia
Import-OSMedia -EditionId ProfessionalWorkstation -SkipGrid

Last updated