mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2024-11-22 15:46:41 +00:00
Compare commits
4 Commits
79bc7b0242
...
3fd1666926
Author | SHA1 | Date | |
---|---|---|---|
|
3fd1666926 | ||
|
bf814304c6 | ||
|
1dfd3f6626 | ||
|
ae48118ddb |
@ -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 in the Keyboard [1,0] :"
|
call :_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,4,5,6,7,8,0] :"
|
call :_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,4,0] :"
|
call :_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard:"
|
call :_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,0]"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,0]"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,4,5,6,7,0]"
|
call :_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard :"
|
call :_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,0]"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your 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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,0]"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your 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
|
||||||
|
@ -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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,2,3,4,5,6,7,8,9,0]"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your 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!
|
||||||
|
|
||||||
|
@ -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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard :"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
||||||
choice /C:123456789R0 /N
|
choice /C:123456789R0 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -777,7 +777,7 @@ exit /b
|
|||||||
if %_NCS% EQU 1 (
|
if %_NCS% EQU 1 (
|
||||||
echo %esc%[%~1%~2%esc%[0m
|
echo %esc%[%~1%~2%esc%[0m
|
||||||
) else (
|
) else (
|
||||||
if not exist %psc% (echo %~3) else (%psc% write-host -back '%1' -fore '%2' '%3')
|
%psc% write-host -back '%1' -fore '%2' '%3'
|
||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
@ -786,7 +786,7 @@ exit /b
|
|||||||
if %_NCS% EQU 1 (
|
if %_NCS% EQU 1 (
|
||||||
echo %esc%[%~1%~2%esc%[%~3%~4%esc%[0m
|
echo %esc%[%~1%~2%esc%[%~3%~4%esc%[0m
|
||||||
) else (
|
) else (
|
||||||
if not exist %psc% (echo %~3%~6) else (%psc% write-host -back '%1' -fore '%2' '%3' -NoNewline; write-host -back '%4' -fore '%5' '%6')
|
%psc% write-host -back '%1' -fore '%2' '%3' -NoNewline; write-host -back '%4' -fore '%5' '%6'
|
||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
|
@ -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 in the Keyboard [1,0] :"
|
call :dk_color %_Green% "Enter a menu option on your 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 in the Keyboard :"
|
call :dk_color2 %_White% " " %_Green% "Enter a menu option on your keyboard :"
|
||||||
choice /C:1234560 /N
|
choice /C:1234560 /N
|
||||||
set _erl=%errorlevel%
|
set _erl=%errorlevel%
|
||||||
|
|
||||||
@ -646,6 +646,23 @@ echo:
|
|||||||
echo Stopping sppsvc service...
|
echo Stopping sppsvc service...
|
||||||
%psc% Stop-Service sppsvc -force %nul%
|
%psc% Stop-Service sppsvc -force %nul%
|
||||||
|
|
||||||
|
if %winbuild% LSS 9200 (
|
||||||
|
REM Fix issues caused by Update KB971033 in Windows 7
|
||||||
|
REM https://support.microsoft.com/help/4487266
|
||||||
|
echo:
|
||||||
|
echo Checking Update KB971033...
|
||||||
|
%psc% "if (Get-Hotfix -Id KB971033 -ErrorAction SilentlyContinue) {Exit 3}" %nul%
|
||||||
|
if !errorlevel!==3 (
|
||||||
|
echo Found, uninstalling it...
|
||||||
|
wusa /uninstall /quiet /norestart /kb:971033
|
||||||
|
) else (
|
||||||
|
echo [Not Found]
|
||||||
|
)
|
||||||
|
%psc% Stop-Service sppuinotify -force %nul%
|
||||||
|
sc config sppuinotify start= disabled
|
||||||
|
del /f /q %SysPath%\7B296FB0-376B-497e-B012-9C450E1B7327-*.C7483456-A289-439d-8115-601632D005A0 /ah
|
||||||
|
)
|
||||||
|
|
||||||
echo:
|
echo:
|
||||||
call :scandat delete
|
call :scandat delete
|
||||||
call :scandat check
|
call :scandat check
|
||||||
@ -675,6 +692,10 @@ call :dk_color %Red% "Failed to rebuilt tokens.dat file."
|
|||||||
echo tokens.dat file was rebuilt successfully.
|
echo tokens.dat file was rebuilt successfully.
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if %winbuild% LSS 9200 (
|
||||||
|
sc config sppuinotify start= demand
|
||||||
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: Rebuild OSPP Tokens
|
:: Rebuild OSPP Tokens
|
||||||
@ -1360,7 +1381,7 @@ exit /b
|
|||||||
if %_NCS% EQU 1 (
|
if %_NCS% EQU 1 (
|
||||||
echo %esc%[%~1%~2%esc%[0m
|
echo %esc%[%~1%~2%esc%[0m
|
||||||
) else (
|
) else (
|
||||||
if not exist %psc% (echo %~3) else (%psc% write-host -back '%1' -fore '%2' '%3')
|
%psc% write-host -back '%1' -fore '%2' '%3'
|
||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
@ -1369,7 +1390,7 @@ exit /b
|
|||||||
if %_NCS% EQU 1 (
|
if %_NCS% EQU 1 (
|
||||||
echo %esc%[%~1%~2%esc%[%~3%~4%esc%[0m
|
echo %esc%[%~1%~2%esc%[%~3%~4%esc%[0m
|
||||||
) else (
|
) else (
|
||||||
if not exist %psc% (echo %~3%~6) else (%psc% write-host -back '%1' -fore '%2' '%3' -NoNewline; write-host -back '%4' -fore '%5' '%6')
|
%psc% write-host -back '%1' -fore '%2' '%3' -NoNewline; write-host -back '%4' -fore '%5' '%6'
|
||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user