From 0b151f90546b6b19d986f80164e3535c2aba9787 Mon Sep 17 00:00:00 2001 From: JonasKloseBW Date: Mon, 23 Sep 2024 03:55:37 +0200 Subject: [PATCH] Update BuildFFUVM.ps1 - Throw error when trying to download Windows Server as it's not possible --- FFUDevelopment/BuildFFUVM.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index aa1a1e6..73f8a08 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -1767,8 +1767,10 @@ function Get-WindowsESD { $cabFileUrl = if ($WindowsRelease -eq 10) { 'https://go.microsoft.com/fwlink/?LinkId=841361' } - else { + elseif ($WindowsRelease -eq 11) { '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