mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-04-09 23:09:51 +08:00
Compare commits
3 Commits
33b0ac9cc7
...
a31d4ed5dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a31d4ed5dc | ||
|
|
ab42e8b719 | ||
|
|
e595f258db |
@ -1,8 +1,4 @@
|
|||||||
@::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.
|
@::22b1randomda521random7f94randomea5random8b55randoma71random85berandom90b7e
|
||||||
@::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
|
@set masver=3.10
|
||||||
@setlocal DisableDelayedExpansion
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
@ -1644,7 +1640,6 @@ if defined serv_cor (
|
|||||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||||
set fixes=%fixes% %mas%fix_service
|
set fixes=%fixes% %mas%fix_service
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||||
@ -5021,7 +5016,7 @@ set esuexistsup=
|
|||||||
set esueditionlist=
|
set esueditionlist=
|
||||||
set esuexistbutnosup=
|
set esuexistbutnosup=
|
||||||
|
|
||||||
if %winbuild% GTR 14393 for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
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 exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum" set isServer=1
|
||||||
|
|
||||||
if /i %tsedition%==Embedded (
|
if /i %tsedition%==Embedded (
|
||||||
@ -5067,9 +5062,6 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
|||||||
REM WindowsServer2016
|
REM WindowsServer2016
|
||||||
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
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-
|
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 (
|
) do (
|
||||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||||
@ -5125,7 +5117,7 @@ goto :ts_off
|
|||||||
set esuavail=
|
set esuavail=
|
||||||
if defined _vis if defined isServer set esuavail=1
|
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% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
||||||
if %winbuild% GTR 7602 if %winbuild% LEQ 14393 if defined isServer set esuavail=1
|
if %winbuild% GTR 7602 if %winbuild% LSS 14393 if defined isServer set esuavail=1
|
||||||
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not 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
|
if %winbuild% EQU 9600 set esuavail=1
|
||||||
|
|
||||||
|
|||||||
@ -1333,7 +1333,6 @@ if defined serv_cor (
|
|||||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||||
set fixes=%fixes% %mas%fix_service
|
set fixes=%fixes% %mas%fix_service
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||||
|
|||||||
@ -2044,7 +2044,6 @@ if defined serv_cor (
|
|||||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||||
set fixes=%fixes% %mas%fix_service
|
set fixes=%fixes% %mas%fix_service
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||||
|
|||||||
@ -3088,7 +3088,6 @@ if defined serv_cor (
|
|||||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||||
set fixes=%fixes% %mas%fix_service
|
set fixes=%fixes% %mas%fix_service
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %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 esueditionlist=
|
||||||
set esuexistbutnosup=
|
set esuexistbutnosup=
|
||||||
|
|
||||||
if %winbuild% GTR 14393 for %%# in (EnterpriseS IoTEnterpriseS IoTEnterpriseSK) do (if /i %tsedition%==%%# set isltsc=1)
|
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 exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-Server*Edition~*.mum" set isServer=1
|
||||||
|
|
||||||
if /i %tsedition%==Embedded (
|
if /i %tsedition%==Embedded (
|
||||||
@ -1138,9 +1138,6 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
|||||||
REM WindowsServer2016
|
REM WindowsServer2016
|
||||||
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
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-
|
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 (
|
) do (
|
||||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||||
@ -3104,7 +3101,6 @@ if defined serv_cor (
|
|||||||
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
call :dk_color %Red% "Checking Corrupt Services [%serv_cor%]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
if /i "%serv_cor%"=="sppsvc-RegistryError" (
|
||||||
set fixes=%fixes% %mas%fix_service
|
set fixes=%fixes% %mas%fix_service
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_service"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user