test
This commit is contained in:
parent
7d5241858e
commit
1980e549ef
@ -2,11 +2,11 @@ $Tls12 = [Enum]::ToObject([System.Net.SecurityProtocolType], 3072); [System.Net.
|
|||||||
|
|
||||||
$DownloadUrl = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_1.5_AIO_CRC32_21D20776.cmd'
|
$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"
|
$FilePath = "$env:USERPROFILE\Desktop\MAS_1.5_AIO_CRC32_21D20776.cmd"
|
||||||
|
|
||||||
if($PSVersionTable.PSVersion.Major -lt 3){
|
if($PSVersionTable.PSVersion.Major -lt 3){
|
||||||
(New-Object System.Net.WebClient).DownloadFile($DownloadUrl, $FilePath)
|
(New-Object System.Net.WebClient).DownloadFile($DownloadUrl, $FilePath)
|
||||||
}else {
|
}else {
|
||||||
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
|
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Process -FilePath $FilePath
|
Start-Process -FilePath $FilePath
|
||||||
|
Loading…
Reference in New Issue
Block a user