Skip to content

Instantly share code, notes, and snippets.

@mcc85s
Last active November 10, 2022 15:08
Show Gist options
  • Save mcc85s/839fbdb92512fbc4bb05ce2cfb6d17ca to your computer and use it in GitHub Desktop.
Save mcc85s/839fbdb92512fbc4bb05ce2cfb6d17ca to your computer and use it in GitHub Desktop.
Server2019.ps1
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
}
@mcc85s
Copy link
Author

mcc85s commented Sep 23, 2019

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment