mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Update BuildFFUVM.ps1
- Throw error when trying to download Windows Server as it's not possible
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user