We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d8268e commit 0978daaCopy full SHA for 0978daa
tiny11maker.ps1
@@ -90,7 +90,13 @@ Start-Sleep -Seconds 2
90
Clear-Host
91
Write-Host "Getting image information:"
92
Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim
93
-$index = Read-Host "Please enter the image index"
+
94
+$index = Read-Host "Please enter the image index : "
95
+$ImagesIndex = (Get-WindowsImage -ImagePath $ScratchDisk\tiny11\sources\install.wim).ImageIndex
96
+while ($ImagesIndex -notcontains $index) {
97
+ $index = Read-Host "Please enter a valide image index : "
98
+}
99
100
Write-Host "Mounting Windows image. This may take a while."
101
$wimFilePath = "$ScratchDisk\tiny11\sources\install.wim"
102
& takeown "/F" $wimFilePath
0 commit comments