summaryrefslogtreecommitdiff
path: root/get.ps1
diff options
context:
space:
mode:
authorWindowsAddict2023-09-25 13:45:25 +0000
committerWindowsAddict2023-09-25 13:45:25 +0000
commit14b71bc223d79adba8262727867f34d45efeffb3 (patch)
tree0e6f0fcd5df410e08d2c0aea7512251c39c73008 /get.ps1
parentd9dde9ba37ed99dba7e44afe428e53b23973831c (diff)
downloadmassgrave.dev-14b71bc223d79adba8262727867f34d45efeffb3.zip
1.9
Diffstat (limited to 'get.ps1')
-rw-r--r--get.ps16
1 files changed, 3 insertions, 3 deletions
diff --git a/get.ps1 b/get.ps1
index ea3527c..727be49 100644
--- a/get.ps1
+++ b/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" }