mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-11-11 17:19:29 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6cfd6f455f | ||
|
|
ccfd1eb536 | ||
|
|
cb5672904b | ||
|
|
b86cda40b2 | ||
|
|
eabab5dffb | ||
|
|
ee1a57254f | ||
|
|
ce67e9cda9 | ||
|
|
06a2ed7b34 |
No files matched your search
+4
-4
@@ -1,4 +1,4 @@
|
||||
MAS export-ignore
|
||||
LICENSE export-ignore
|
||||
README.md export-ignore
|
||||
.gitattributes export-ignore
|
||||
# MAS export-ignore
|
||||
# LICENSE export-ignore
|
||||
# README.md export-ignore
|
||||
# .gitattributes export-ignore
|
||||
@@ -3,7 +3,7 @@
|
||||
@::Is a real person even the one deciding to flag this or is it Copilot told to flag anything it decides not to like?
|
||||
@::If a campaign is using this script as a cover, please flag parts of the campaign instead of the script. This isn't the first time we experienced collateral damage due to campaigns completely unrelated to us.
|
||||
@::If you disagree that MAS is not malicious, we would appreciate if you contacted us to explain what constitutes MAS as "Sonbokli" and we'll look into it. Thank you.
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@setlocal DisableDelayedExpansion
|
||||
@echo off
|
||||
|
||||
@@ -3440,6 +3440,8 @@ call :dk_color %_Yellow% "%mas%"
|
||||
)
|
||||
)
|
||||
|
||||
exit /b
|
||||
|
||||
::========================================================================================================================================
|
||||
|
||||
:oh_processmsi
|
||||
@@ -5094,9 +5096,7 @@ call :dk_color %Gray% "Checking Activation ID [%tsedition% LTSC
|
||||
goto :ts_off
|
||||
)
|
||||
|
||||
echo "%allapps%" | findstr /i "14240489-7c2d-42ee-a167-4913ca4672da b705d67e-527a-4f11-b904-7be441066a22 0b533b5e-08b6-44f9-b885-c2de291ba456 4cd0ab30-73a4-4dde-972c-512f05be31df 22badfe6-7d55-4485-874b-7ec317442134" %nul1% && (
|
||||
call :dk_color %Red% "Checking Activated Licenses [Found Year 4-6 License]"
|
||||
call :dk_color %Blue% "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses."
|
||||
echo "%allapps%" | findstr /i "14240489-7c2d-42ee-a167-4913ca4672da b705d67e-527a-4f11-b904-7be441066a22 0b533b5e-08b6-44f9-b885-c2de291ba456 4cd0ab30-73a4-4dde-972c-512f05be31df 22badfe6-7d55-4485-874b-7ec317442134 ab8c630c-395f-4241-b08d-736fbea0e1c8" %nul1% && (
|
||||
set esuexistbutnosup=
|
||||
set esuexistsup=
|
||||
set esubadactids=1
|
||||
@@ -11337,6 +11337,26 @@ if (-not $env:resetstuff) {
|
||||
)
|
||||
$detected = $false
|
||||
|
||||
foreach ($eyactid in $badesuactids) {
|
||||
$licenseStatus = Get-WmiInfo -tsactid $eyactid -property "LicenseStatus"
|
||||
$prodName = Get-WmiInfo -tsactid $eyactid -property "Name"
|
||||
if ($prodName) {
|
||||
$nameParts = $prodName -split ',', 2
|
||||
$prodName = if ($nameParts.Count -gt 1) { ($nameParts[1].Trim() -split '[ ,]')[0] } else { $null }
|
||||
}
|
||||
|
||||
if ($licenseStatus -eq 1) {
|
||||
$detected = $true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if ($detected) {
|
||||
Write-Host "Checking Activated Licenses [Found Year 4-6 License]" -ForegroundColor White -BackgroundColor Red
|
||||
Write-Host "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses." -ForegroundColor White -BackgroundColor Blue
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
foreach ($eyactid in $badesuactids) {
|
||||
$licenseStatus = Get-WmiInfo -tsactid $eyactid -property "LicenseStatus"
|
||||
$prodName = Get-WmiInfo -tsactid $eyactid -property "Name"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
@@ -1187,9 +1187,7 @@ call :dk_color %Gray% "Checking Activation ID [%tsedition% LTSC
|
||||
goto :ts_off
|
||||
)
|
||||
|
||||
echo "%allapps%" | findstr /i "14240489-7c2d-42ee-a167-4913ca4672da b705d67e-527a-4f11-b904-7be441066a22 0b533b5e-08b6-44f9-b885-c2de291ba456 4cd0ab30-73a4-4dde-972c-512f05be31df 22badfe6-7d55-4485-874b-7ec317442134" %nul1% && (
|
||||
call :dk_color %Red% "Checking Activated Licenses [Found Year 4-6 License]"
|
||||
call :dk_color %Blue% "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses."
|
||||
echo "%allapps%" | findstr /i "14240489-7c2d-42ee-a167-4913ca4672da b705d67e-527a-4f11-b904-7be441066a22 0b533b5e-08b6-44f9-b885-c2de291ba456 4cd0ab30-73a4-4dde-972c-512f05be31df 22badfe6-7d55-4485-874b-7ec317442134 ab8c630c-395f-4241-b08d-736fbea0e1c8" %nul1% && (
|
||||
set esuexistbutnosup=
|
||||
set esuexistsup=
|
||||
set esubadactids=1
|
||||
@@ -8923,6 +8921,26 @@ if (-not $env:resetstuff) {
|
||||
)
|
||||
$detected = $false
|
||||
|
||||
foreach ($eyactid in $badesuactids) {
|
||||
$licenseStatus = Get-WmiInfo -tsactid $eyactid -property "LicenseStatus"
|
||||
$prodName = Get-WmiInfo -tsactid $eyactid -property "Name"
|
||||
if ($prodName) {
|
||||
$nameParts = $prodName -split ',', 2
|
||||
$prodName = if ($nameParts.Count -gt 1) { ($nameParts[1].Trim() -split '[ ,]')[0] } else { $null }
|
||||
}
|
||||
|
||||
if ($licenseStatus -eq 1) {
|
||||
$detected = $true
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
if ($detected) {
|
||||
Write-Host "Checking Activated Licenses [Found Year 4-6 License]" -ForegroundColor White -BackgroundColor Red
|
||||
Write-Host "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses." -ForegroundColor White -BackgroundColor Blue
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
foreach ($eyactid in $badesuactids) {
|
||||
$licenseStatus = Get-WmiInfo -tsactid $eyactid -property "LicenseStatus"
|
||||
$prodName = Get-WmiInfo -tsactid $eyactid -property "Name"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@set masver=3.13
|
||||
@set masver=3.14
|
||||
@echo off
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user