From 14b71bc223d79adba8262727867f34d45efeffb3 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Mon, 25 Sep 2023 19:15:25 +0530 Subject: 1.9 --- get.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'get.ps1') 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" } -- cgit v1.2.3