diff options
| author | DESKTOP-RBH716R\Admin | 2022-07-17 20:12:01 +0000 |
|---|---|---|
| committer | DESKTOP-RBH716R\Admin | 2022-07-17 20:12:01 +0000 |
| commit | 285226ca354f2638b49edc5b4bec198723f7fe7d (patch) | |
| tree | 8751566d050f9d578bbd951124ca1949cad97c2d | |
| parent | f1a2b0cd5292a33901fc75933b9d21bbd4c0faf6 (diff) | |
| download | massgrave.dev-285226ca354f2638b49edc5b4bec198723f7fe7d.zip | |
code update
| -rw-r--r-- | _site/get.ps1 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/_site/get.ps1 b/_site/get.ps1 index 140cfd4..ebd026a 100644 --- a/_site/get.ps1 +++ b/_site/get.ps1 @@ -1,7 +1,15 @@ -$Tls12 = [Enum]::ToObject([System.Net.SecurityProtocolType], 3072); [System.Net.ServicePointManager]::SecurityProtocol = $Tls12; +# Enable TLSv1.2 and TLSv1.3 for compatibility with older clients +$TLS12Protocol = [System.Net.SecurityProtocolType] 'Tls12', 'Tls13' +[System.Net.ServicePointManager]::SecurityProtocol = $TLS12Protocol + + $DownloadUrl = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_1.5_AIO_CRC32_21D20776.cmd' $FilePath = "$env:USERPROFILE\Desktop\MAS_1.5_AIO_CRC32_21D20776.cmd" +if($PSVersionTable.PSVersion.Major -lt 3){ (New-Object System.Net.WebClient).DownloadFile($DownloadUrl, $FilePath) +}else { +Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath +} Start-Process -FilePath $FilePath
\ No newline at end of file |
