mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-12-04 21:45:56 +00:00
Compare commits
3
Commits
ee1a57254f
...
3.14
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb5672904b | ||
|
|
b86cda40b2 | ||
|
|
eabab5dffb |
+4
-4
@@ -1,4 +1,4 @@
|
|||||||
# MAS export-ignore
|
MAS export-ignore
|
||||||
# LICENSE export-ignore
|
LICENSE export-ignore
|
||||||
# README.md export-ignore
|
README.md export-ignore
|
||||||
# .gitattributes 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?
|
@::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 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.
|
@::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
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
@@ -11356,6 +11356,22 @@ if (-not $env:resetstuff) {
|
|||||||
Write-Host "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses." -ForegroundColor White -BackgroundColor Blue
|
Write-Host "ESU licenses for years 4-6 prevent Windows update detection. MAS will automatically remove these licenses." -ForegroundColor White -BackgroundColor Blue
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
$pkeyId = [LibTSforge.SPP.SLApi]::GetInstalledPkeyID($eyactid)
|
||||||
|
[LibTSforge.SPP.SLApi]::UninstallProductKey($pkeyId)
|
||||||
|
Write-Host "Removed license for [$prodName]." -ForegroundColor White -BackgroundColor Darkgray
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($tsactid in $tsactids) {
|
foreach ($tsactid in $tsactids) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
@set masver=3.13
|
@set masver=3.14
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user