mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-26 01:26:41 +00:00
Compare commits
2 Commits
ed3dace78f
...
d372b62280
Author | SHA1 | Date | |
---|---|---|---|
|
d372b62280 | ||
|
9e5062e7cc |
@ -221,7 +221,7 @@ if not defined _MASunattended (
|
|||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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: [0] Exit
|
||||||
echo: ______________________________________________________________
|
echo: ______________________________________________________________
|
||||||
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
|
choice /C:123456780 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -326,7 +326,7 @@ echo:
|
|||||||
echo: [0] Go to Main Menu
|
echo: [0] Go to Main Menu
|
||||||
echo: ______________________________________________________________
|
echo: ______________________________________________________________
|
||||||
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
|
choice /C:12340 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -392,7 +392,7 @@ call :_color2 %_White% " [R] " %_Green% "ReadMe"
|
|||||||
echo: [0] Go Back
|
echo: [0] Go Back
|
||||||
echo: ________________________________________________________
|
echo: ________________________________________________________
|
||||||
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
|
choice /C:123456789R0 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -1786,7 +1786,7 @@ echo:
|
|||||||
echo [0] %_exitmsg%
|
echo [0] %_exitmsg%
|
||||||
echo ____________________________________________________________
|
echo ____________________________________________________________
|
||||||
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
|
choice /C:1230 /N
|
||||||
set _el=!errorlevel!
|
set _el=!errorlevel!
|
||||||
if !_el!==4 exit /b
|
if !_el!==4 exit /b
|
||||||
@ -3111,7 +3111,7 @@ echo:
|
|||||||
echo [0] %_exitmsg%
|
echo [0] %_exitmsg%
|
||||||
echo ____________________________________________________________
|
echo ____________________________________________________________
|
||||||
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
|
choice /C:120 /N
|
||||||
set _el=!errorlevel!
|
set _el=!errorlevel!
|
||||||
if !_el!==3 exit /b
|
if !_el!==3 exit /b
|
||||||
@ -4047,7 +4047,7 @@ echo.
|
|||||||
echo. [0] %_exitmsg%
|
echo. [0] %_exitmsg%
|
||||||
echo. ______________________________________________________________
|
echo. ______________________________________________________________
|
||||||
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
|
choice /C:12345670 /N
|
||||||
set _el=%errorlevel%
|
set _el=%errorlevel%
|
||||||
|
|
||||||
@ -8799,7 +8799,7 @@ echo:
|
|||||||
echo: [0] %_exitmsg%
|
echo: [0] %_exitmsg%
|
||||||
echo: _______________________________________________________________
|
echo: _______________________________________________________________
|
||||||
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
|
choice /C:1234560 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
|
@ -303,7 +303,7 @@ if not %_unattended%==1 (
|
|||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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 [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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 [0] %_exitmsg%
|
||||||
echo ____________________________________________________________
|
echo ____________________________________________________________
|
||||||
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
|
choice /C:120 /N
|
||||||
set _el=!errorlevel!
|
set _el=!errorlevel!
|
||||||
if !_el!==3 exit /b
|
if !_el!==3 exit /b
|
||||||
|
@ -296,7 +296,7 @@ if not %_unattended%==1 (
|
|||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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 [0] %_exitmsg%
|
||||||
echo ____________________________________________________________
|
echo ____________________________________________________________
|
||||||
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
|
choice /C:1230 /N
|
||||||
set _el=!errorlevel!
|
set _el=!errorlevel!
|
||||||
if !_el!==4 exit /b
|
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\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]
|
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 [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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 [0] %_exitmsg%
|
||||||
echo ______________________________________________________________
|
echo ______________________________________________________________
|
||||||
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
|
choice /C:1234567890 /N
|
||||||
set _el=!errorlevel!
|
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\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]
|
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 [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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 [1] Continue
|
||||||
echo [0] Go Back
|
echo [0] Go Back
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 goto cedmenu2
|
if !errorlevel!==2 goto cedmenu2
|
||||||
if !errorlevel!==1 rem
|
if !errorlevel!==1 rem
|
||||||
|
@ -255,7 +255,7 @@ if not %_unattended%==1 (
|
|||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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: [0] Exit
|
||||||
echo: ________________________________________________________
|
echo: ________________________________________________________
|
||||||
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
|
choice /C:123456789R0 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ if not %_unattended%==1 (
|
|||||||
echo [1] Get Latest MAS
|
echo [1] Get Latest MAS
|
||||||
echo [0] Continue Anyway
|
echo [0] Continue Anyway
|
||||||
echo:
|
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
|
choice /C:10 /N
|
||||||
if !errorlevel!==2 rem
|
if !errorlevel!==2 rem
|
||||||
if !errorlevel!==1 (start ht%-%tps://github.com/mass%-%gravel/Microsoft-Acti%-%vation-Scripts & start %mas% & exit /b)
|
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: [0] %_exitmsg%
|
||||||
echo: _______________________________________________________________
|
echo: _______________________________________________________________
|
||||||
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
|
choice /C:1234560 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -665,12 +665,12 @@ del /f /q %SysPath%\7B296FB0-376B-497e-B012-9C450E1B7327-*.C7483456-A289-439d-81
|
|||||||
|
|
||||||
:: Delete registry keys that are not deleted by activation scripts
|
:: 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 "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 "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 "PolicyValuesArray" /f
|
||||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f
|
%nul% reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f
|
||||||
%nul% reg delete "HKU\S-1-5-20\Software\Microsoft\OfficeSoftwareProtectionPlatform\Policies" /f
|
|
||||||
%nul% reg delete "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Policies" /f
|
|
||||||
%nul% reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\data" /f
|
%nul% reg delete "HKLM\SOFTWARE\Microsoft\OfficeSoftwareProtectionPlatform\data" /f
|
||||||
|
|
||||||
echo:
|
echo:
|
||||||
|
Loading…
Reference in New Issue
Block a user