summaryrefslogtreecommitdiff
path: root/_site/get.ps1
diff options
context:
space:
mode:
Diffstat (limited to '_site/get.ps1')
-rw-r--r--_site/get.ps16
1 files changed, 3 insertions, 3 deletions
diff --git a/_site/get.ps1 b/_site/get.ps1
index ea3527c..727be49 100644
--- a/_site/get.ps1
+++ b/_site/get.ps1
@@ -2,10 +2,10 @@ $ErrorActionPreference = "Stop"
# Enable TLSv1.2 for compatibility with older clients
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
-$DownloadURL = 'https://gitlab.com/massgrave/microsoft-activation-scripts/-/raw/master/MAS/All-In-One-Version/MAS_AIO.cmd'
-$DownloadURL2 = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_AIO.cmd'
+$DownloadURL = 'https://raw.githubusercontent.com/massgravel/Microsoft-Activation-Scripts/master/MAS/All-In-One-Version/MAS_AIO.cmd'
+$DownloadURL2 = 'https://bitbucket.org/WindowsAddict/microsoft-activation-scripts/raw/dc9bf31743ebed91705cddc543e73e4632f2d843/MAS/All-In-One-Version/MAS_AIO.cmd'
-$rand = Get-Random -Maximum 1000
+$rand = Get-Random -Maximum 99999999
$isAdmin = [bool]([Security.Principal.WindowsIdentity]::GetCurrent().Groups -match 'S-1-5-32-544')
$FilePath = if ($isAdmin) { "$env:SystemRoot\Temp\MAS_$rand.cmd" } else { "$env:TEMP\MAS_$rand.cmd" }