@::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.
@setmasver=3.11
@setmasver=3.12
@setlocal DisableDelayedExpansion
@echo off
@ -41,9 +41,20 @@ set "Path=%SystemRoot%\Sysnative;%SystemRoot%;%SystemRoot%\Sysnative\Wbem;%Syste
@@ -41,9 +41,20 @@ set "Path=%SystemRoot%\Sysnative;%SystemRoot%;%SystemRoot%\Sysnative\Wbem;%Syste
call:dk_color%Blue%"Connect to the Internet and try again. Script will use the StaticCID activation method."
call:dk_color%Blue%"Return to the previous menu and select StaticCID activation method. Internet connection is required to activate."
) else (
call:dk_color%Blue%"Use non-KMS4K activation options from the previous menu."
)
@ -5875,7 +5853,7 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
@@ -5875,7 +5853,7 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
setfixes=%fixes%%mas%troubleshoot
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%troubleshoot"
# Older .NET Framework versions do not have that method, but they also don't create the folder that it removes.
}
Remove-Item -Path $ctemp
if ($env:_debug-eq'0'){
[LibTSforge.Logger]::HideOutput = $true
@ -11383,7 +11361,7 @@ if (-not $env:resetstuff) {
@@ -11383,7 +11361,7 @@ if (-not $env:resetstuff) {
if ($env:tsmethod-eq"KMS4k"){
if ($build-ge26100){
Write-Host "[$prodName] is activated with KMS4k for over 4,000 years." -ForegroundColor White -BackgroundColor DarkGreen
Write-Host "From build 26100.7019, Windows will always display and stay at 180 days remaining if the actual period is longer." -ForegroundColor White -BackgroundColor Darkgray
Write-Host "From build 26100.7019, Windows will always display a remaining activation period of 180 days in Settings." -ForegroundColor White -BackgroundColor Darkgray
}
else {
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
@ -16924,7 +16902,6 @@ for /f "tokens=* delims=" %%D in ('dir /a:-D/b/s "%SystemRoot%\logs\%1"') do (
@@ -16924,7 +16902,6 @@ for /f "tokens=* delims=" %%D in ('dir /a:-D/b/s "%SystemRoot%\logs\%1"') do (
@ -18313,7 +18302,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li
@@ -18313,7 +18302,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li
call:dk_color%Blue%"Connect to the Internet and try again. Script will use the StaticCID activation method."
call:dk_color%Blue%"Return to the previous menu and select StaticCID activation method. Internet connection is required to activate."
) else (
call:dk_color%Blue%"Use non-KMS4K activation options from the previous menu."
)
@ -1946,7 +1959,7 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
@@ -1946,7 +1959,7 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
setfixes=%fixes%%mas%troubleshoot
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%troubleshoot"
# Older .NET Framework versions do not have that method, but they also don't create the folder that it removes.
}
Remove-Item -Path $ctemp
if ($env:_debug-eq'0'){
[LibTSforge.Logger]::HideOutput = $true
@ -8947,7 +8960,7 @@ if (-not $env:resetstuff) {
@@ -8947,7 +8960,7 @@ if (-not $env:resetstuff) {
if ($env:tsmethod-eq"KMS4k"){
if ($build-ge26100){
Write-Host "[$prodName] is activated with KMS4k for over 4,000 years." -ForegroundColor White -BackgroundColor DarkGreen
Write-Host "From build 26100.7019, Windows will always display and stay at 180 days remaining if the actual period is longer." -ForegroundColor White -BackgroundColor Darkgray
Write-Host "From build 26100.7019, Windows will always display a remaining activation period of 180 days in Settings." -ForegroundColor White -BackgroundColor Darkgray
}
else {
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
@ -608,7 +621,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li
@@ -608,7 +621,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li