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

Import-OSMedia

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
Import-OSMedia -ImageIndex 7 -SkipGridView

ImageName

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

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

EditionID

Import-OSMedia -EditionId ProfessionalWorkstation -SkipGrid
Import-OSMedia -EditionId ProfessionalWorkstation -SkipGrid