第一种方法
尝试了使用
Enable TLSv1.2 for compatibility with older clients
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor [System.Net.SecurityProtocolType]::Tls12
$DownloadURL = ‘https://raw.githubusercontent.com/lstprjct/IDM-Activation-Script/main/IAS_0.8.cmd’
F i l e P a t h = " FilePath = " FilePath="env:TEMP\IAS.cmd"
try {
Invoke-WebRequest -Uri $DownloadURL -UseBasicParsing -OutFile $FilePath
} catch {
Write-Error $_
Return
}
if (Test-Path $FilePath) {
Start-Process $FilePath -Wait
$item = Get-Item -LiteralPath $FilePath
$item.Delete()
}
这种方式需要科学上网,否则就会说无法解析raw.githubusercontent.com
第二种方法:
打开powershell
输入:
irm https://massgrave.dev/ias | iex
这样之后就会有弹窗,仔细看一下,一般先3后1,或者activite这个 选择相应的数字就行。。