From 836a6d277b54224ba6feb257fc04a41c20a662a5 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sun, 10 Aug 2025 06:57:10 +0530 Subject: Update print info, different progress bar, and add -verb runas --- index.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 7640f49..be75a64 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,8 @@ # This script is hosted on https://get.activated.win for https://massgrave.dev
if (-not $args) {
- Write-Host 'Homepage:' -ForegroundColor White -BackgroundColor DarkGreen -NoNewline
- Write-Host ' ' -NoNewline
- Write-Host 'https://massgrave.dev' -ForegroundColor White -BackgroundColor Blue
+ Write-Host 'Need help? Check our homepage: ' -NoNewline
+ Write-Host 'https://massgrave.dev' -ForegroundColor Green
}
& {
@@ -54,12 +53,12 @@ if (-not $args) {
'https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?path=/MAS/All-In-One-Version-KL/MAS_AIO.cmd&versionType=Commit&version=67abcd0c8925832fcf4365b9cf3706ab6fbf8571',
'https://git.activated.win/massgrave/Microsoft-Activation-Scripts/raw/commit/67abcd0c8925832fcf4365b9cf3706ab6fbf8571/MAS/All-In-One-Version-KL/MAS_AIO.cmd'
)
-
+ Write-Progress -Activity "Downloading..." -Status "Please wait"
$errors = @()
foreach ($URL in $URLs | Sort-Object { Get-Random }) {
try {
if ($psv -ge 3) {
- $response = Invoke-WebRequest -Uri $URL -UseBasicParsing
+ $response = Invoke-RestMethod $URL
}
else {
$w = New-Object Net.WebClient
@@ -71,6 +70,7 @@ if (-not $args) {
$errors += $_
}
}
+ Write-Progress -Activity "Downloading..." -Completed
if (-not $response) {
Check3rdAV
@@ -116,7 +116,7 @@ if (-not $args) {
if ($chkcmd -notcontains "CMD is working") {
Write-Warning "cmd.exe is not working.`nReport this issue at $troubleshoot"
}
- saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" $args""" -Wait
+ saps -FilePath $env:ComSpec -ArgumentList "/c """"$FilePath"" -el $args""" -verb runas -Wait
CheckFile $FilePath
if ($psv -lt 3) {
--
cgit v1.2.3