Last active
November 10, 2022 15:08
-
-
Save mcc85s/839fbdb92512fbc4bb05ce2cfb6d17ca to your computer and use it in GitHub Desktop.
Server2019.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Download-WindowsServer2019 | |
{ | |
[CmdLetBinding()]Param( | |
[Parameter(Position=0,Mandatory=$True)][String]$Path) | |
$Current = [Net.ServicePointManager]::SecurityProtocol | |
[Net.ServicePointManager]::SecurityProtocol = 3072 | |
Import-Module BITSTransfer | |
$Image = "17763.379.190312-0539.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" | |
$2019 = @{ | |
Source = "https://software-download.microsoft.com/download/sg/$Image" | |
Destination = "$Path\$Image" | |
Description = "Downloading Windows Server 2019 Evaluation" | |
} | |
Start-BitsTransfer @2019 | |
[Net.ServicePointManager]::SecurityProtocol = $Current | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When Hyper-V tells you that "the ISO hash value is incorrect"... ^ and you know this code is correct?
Well that's what security is all about. Finding out that the MANUFACTURER might have to 'unhack' things like 'the BIOS'.