mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-04-02 14:05:49 +03:00
Compare commits
3 Commits
a31d4ed5dc
...
33b0ac9cc7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
33b0ac9cc7 | ||
|
|
97602941e5 | ||
|
|
773b758f4d |
@@ -1,4 +1,8 @@
|
||||
@::22b1randomda521random7f94randomea5random8b55randoma71random85berandom90b7e
|
||||
@::Please stop false-flagging this script over and over. This is the 3rd time I've had to update the script to deal with the false positives.
|
||||
@::Nothing in this script is malicious and it is used by thousands of people *daily*.
|
||||
@::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.10
|
||||
@setlocal DisableDelayedExpansion
|
||||
@echo off
|
||||
@@ -1640,6 +1644,7 @@ if defined serv_cor (
|
||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||
|
||||
if not defined showfix (
|
||||
echo:
|
||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||
set fixes=%fixes% %mas%fix_service
|
||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||
@@ -5016,7 +5021,7 @@ set esuexistsup=
|
||||
set esueditionlist=
|
||||
set esuexistbutnosup=
|
||||
|
||||
for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
||||
if %winbuild% GTR 14393 for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
||||
if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum" set isServer=1
|
||||
|
||||
if /i %tsedition%==Embedded (
|
||||
@@ -5062,6 +5067,9 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
||||
REM WindowsServer2016
|
||||
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||
4cd0ab30-73a4-4dde-972c-512f05be31df_Server-ESU-Year6[4-6y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||
REM Windows10LTSB2016
|
||||
f2571710-2c24-4677-8fb5-a07d41d3c1aa_Client-ESU-Year3[1-3y]_-EnterpriseS-EnterpriseSN-
|
||||
22badfe6-7d55-4485-874b-7ec317442134_Client-ESU-Year6[4-6y]_-EnterpriseS-EnterpriseSN-
|
||||
) do (
|
||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||
@@ -5117,7 +5125,7 @@ goto :ts_off
|
||||
set esuavail=
|
||||
if defined _vis if defined isServer set esuavail=1
|
||||
if %winbuild% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
||||
if %winbuild% GTR 7602 if %winbuild% LSS 14393 if defined isServer set esuavail=1
|
||||
if %winbuild% GTR 7602 if %winbuild% LEQ 14393 if defined isServer set esuavail=1
|
||||
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not defined isServer set esuavail=1
|
||||
if %winbuild% EQU 9600 set esuavail=1
|
||||
|
||||
|
||||
@@ -1333,6 +1333,7 @@ if defined serv_cor (
|
||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||
|
||||
if not defined showfix (
|
||||
echo:
|
||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||
set fixes=%fixes% %mas%fix_service
|
||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||
|
||||
@@ -2044,6 +2044,7 @@ if defined serv_cor (
|
||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||
|
||||
if not defined showfix (
|
||||
echo:
|
||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||
set fixes=%fixes% %mas%fix_service
|
||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||
|
||||
@@ -3088,6 +3088,7 @@ if defined serv_cor (
|
||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||
|
||||
if not defined showfix (
|
||||
echo:
|
||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||
set fixes=%fixes% %mas%fix_service
|
||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||
|
||||
@@ -1092,7 +1092,7 @@ set esuexistsup=
|
||||
set esueditionlist=
|
||||
set esuexistbutnosup=
|
||||
|
||||
for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
||||
if %winbuild% GTR 14393 for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
||||
if exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum" set isServer=1
|
||||
|
||||
if /i %tsedition%==Embedded (
|
||||
@@ -1138,6 +1138,9 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
||||
REM WindowsServer2016
|
||||
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||
4cd0ab30-73a4-4dde-972c-512f05be31df_Server-ESU-Year6[4-6y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||
REM Windows10LTSB2016
|
||||
f2571710-2c24-4677-8fb5-a07d41d3c1aa_Client-ESU-Year3[1-3y]_-EnterpriseS-EnterpriseSN-
|
||||
22badfe6-7d55-4485-874b-7ec317442134_Client-ESU-Year6[4-6y]_-EnterpriseS-EnterpriseSN-
|
||||
) do (
|
||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||
@@ -3101,6 +3104,7 @@ if defined serv_cor (
|
||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||
|
||||
if not defined showfix (
|
||||
echo:
|
||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||
set fixes=%fixes% %mas%fix_service
|
||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||
|
||||
Reference in New Issue
Block a user