Update BuildFFUVM.ps1

- Throw error when trying to download Windows Server as it's not possible
This commit is contained in:
JonasKloseBW
2024-09-23 03:55:37 +02:00
committed by GitHub
parent cafc45dbba
commit 0b151f9054
+3 -1
View File
@@ -1767,8 +1767,10 @@ function Get-WindowsESD {
$cabFileUrl = if ($WindowsRelease -eq 10) { $cabFileUrl = if ($WindowsRelease -eq 10) {
'https://go.microsoft.com/fwlink/?LinkId=841361' 'https://go.microsoft.com/fwlink/?LinkId=841361'
} }
else { elseif ($WindowsRelease -eq 11) {
'https://go.microsoft.com/fwlink/?LinkId=2156292' 'https://go.microsoft.com/fwlink/?LinkId=2156292'
} else {
throw "Can't download Windows Server. Please download the Windows setup media from your subscription homepage."
} }
# Download cab file # Download cab file