mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-10-30 06:58:17 +08:00
Compare commits
3 Commits
1f50e4ba98
...
d372b62280
Author | SHA1 | Date | |
---|---|---|---|
|
d372b62280 | ||
|
9e5062e7cc | ||
|
ed3dace78f |
@ -221,7 +221,7 @@ if not defined _MASunattended (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -285,7 +285,7 @@ echo: [8] Help
|
||||
echo: [0] Exit
|
||||
echo: ______________________________________________________________
|
||||
echo:
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,4,5,6,7,8,0] :"
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,4,5,6,7,8,0] :"
|
||||
choice /C:123456780 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
@ -326,7 +326,7 @@ echo:
|
||||
echo: [0] Go to Main Menu
|
||||
echo: ______________________________________________________________
|
||||
echo:
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,4,0] :"
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,4,0] :"
|
||||
choice /C:12340 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
@ -392,7 +392,7 @@ call :_color2 %_White% " [R] " %_Green% "ReadMe"
|
||||
echo: [0] Go Back
|
||||
echo: ________________________________________________________
|
||||
echo:
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option on your keyboard:"
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard:"
|
||||
choice /C:123456789R0 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
@ -1786,7 +1786,7 @@ echo:
|
||||
echo [0] %_exitmsg%
|
||||
echo ____________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,0]"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,0]"
|
||||
choice /C:1230 /N
|
||||
set _el=!errorlevel!
|
||||
if !_el!==4 exit /b
|
||||
@ -3111,7 +3111,7 @@ echo:
|
||||
echo [0] %_exitmsg%
|
||||
echo ____________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,0]"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,0]"
|
||||
choice /C:120 /N
|
||||
set _el=!errorlevel!
|
||||
if !_el!==3 exit /b
|
||||
@ -4047,7 +4047,7 @@ echo.
|
||||
echo. [0] %_exitmsg%
|
||||
echo. ______________________________________________________________
|
||||
echo.
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,4,5,6,7,0]"
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,4,5,6,7,0]"
|
||||
choice /C:12345670 /N
|
||||
set _el=%errorlevel%
|
||||
|
||||
@ -8799,7 +8799,7 @@ echo:
|
||||
echo: [0] %_exitmsg%
|
||||
echo: _______________________________________________________________
|
||||
echo:
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
||||
call :_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard :"
|
||||
choice /C:1234560 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
|
@ -303,7 +303,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
|
@ -306,7 +306,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -339,7 +339,7 @@ echo:
|
||||
echo [0] %_exitmsg%
|
||||
echo ____________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,0]"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,0]"
|
||||
choice /C:120 /N
|
||||
set _el=!errorlevel!
|
||||
if !_el!==3 exit /b
|
||||
|
@ -296,7 +296,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -332,7 +332,7 @@ echo:
|
||||
echo [0] %_exitmsg%
|
||||
echo ____________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,0]"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,0]"
|
||||
choice /C:1230 /N
|
||||
set _el=!errorlevel!
|
||||
if !_el!==4 exit /b
|
||||
@ -1187,6 +1187,8 @@ reg delete "HKLM\SOFTWARE\Microsoft\Office\%%#.0\Common\OEM" /f /reg:32 %nul%
|
||||
)
|
||||
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies\0ff1ce15-a989-479d-af46-f275c6370663" /f %nul%
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform\Policies\0ff1ce15-a989-479d-af46-f275c6370663" /f %nul%
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform\Policies\59a52881-a989-479d-af46-f275c6370663" /f %nul%
|
||||
|
||||
echo Clearing Office License Blocks [Successfully Cleared From All %counter% Useraccounts]
|
||||
|
||||
|
@ -325,7 +325,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -385,7 +385,7 @@ echo [9] Download Office
|
||||
echo [0] %_exitmsg%
|
||||
echo ______________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard [1,2,3,4,5,6,7,8,9,0]"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard [1,2,3,4,5,6,7,8,9,0]"
|
||||
choice /C:1234567890 /N
|
||||
set _el=!errorlevel!
|
||||
|
||||
@ -1288,6 +1288,8 @@ reg delete "HKLM\SOFTWARE\Microsoft\Office\%%#.0\Common\OEM" /f /reg:32 %nul%
|
||||
)
|
||||
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies\0ff1ce15-a989-479d-af46-f275c6370663" /f %nul%
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform\Policies\0ff1ce15-a989-479d-af46-f275c6370663" /f %nul%
|
||||
reg delete "HKU\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform\Policies\59a52881-a989-479d-af46-f275c6370663" /f %nul%
|
||||
|
||||
echo Clearing Office License Blocks [Successfully Cleared From All %counter% Useraccounts]
|
||||
|
||||
|
@ -261,7 +261,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -488,7 +488,7 @@ echo:
|
||||
echo [1] Continue
|
||||
echo [0] Go Back
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 goto cedmenu2
|
||||
if !errorlevel!==1 rem
|
||||
|
@ -255,7 +255,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -349,7 +349,7 @@ call :dk_color2 %_White% " [R] " %_Green% "ReadMe"
|
||||
echo: [0] Exit
|
||||
echo: ________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard :"
|
||||
choice /C:123456789R0 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
|
@ -256,7 +256,7 @@ if not %_unattended%==1 (
|
||||
echo [1] Get Latest MAS
|
||||
echo [0] Continue Anyway
|
||||
echo:
|
||||
call :dk_color %_Green% "Enter a menu option on your keyboard [1,0] :"
|
||||
call :dk_color %_Green% "Enter a menu option in the Keyboard [1,0] :"
|
||||
choice /C:10 /N
|
||||
if !errorlevel!==2 rem
|
||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
||||
@ -310,7 +310,7 @@ echo:
|
||||
echo: [0] %_exitmsg%
|
||||
echo: _______________________________________________________________
|
||||
echo:
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
||||
call :dk_color2 %_White% " " %_Green% "Enter a menu option in the Keyboard :"
|
||||
choice /C:1234560 /N
|
||||
set _erl=%errorlevel%
|
||||
|
||||
@ -663,6 +663,16 @@ sc config sppuinotify start= disabled
|
||||
del /f /q %SysPath%\7B296FB0-376B-497e-B012-9C450E1B7327-*.C7483456-A289-439d-8115-601632D005A0 /ah
|
||||
)
|
||||
|
||||
:: Delete registry keys that are not deleted by activation scripts
|
||||
|
||||
echo:
|
||||
echo Cleaning some licensing-related registry keys...
|
||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "ServiceSessionId" /f
|
||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "LicStatusArray" /f
|
||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "PolicyValuesArray" /f
|
||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f
|
||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\data" /f
|
||||
|
||||
echo:
|
||||
call :scandat delete
|
||||
call :scandat check
|
||||
|
Loading…
Reference in New Issue
Block a user