From 7ce04d75c76a43f35e7433f4c3b9607046d6d17d Mon Sep 17 00:00:00 2001 From: DESKTOP-RBH716R\Admin Date: Thu, 22 Sep 2022 22:27:47 +0530 Subject: Fix typo --- _site/get.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 _site/get.ps1 (limited to '_site/get.ps1') diff --git a/_site/get.ps1 b/_site/get.ps1 new file mode 100644 index 0000000..86e1b2b --- /dev/null +++ b/_site/get.ps1 @@ -0,0 +1,19 @@ +# 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/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_AIO.cmd' + +$FilePath = "$env:TEMP\MAS.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() +} -- cgit v1.2.3