mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-03-17 13:33:35 +00:00
Compare commits
12 Commits
2443e1e471
...
2.7
Author | SHA1 | Date | |
---|---|---|---|
b1b5299c47 | |||
652092e985 | |||
b06c83622a | |||
ce669809bf | |||
0afb09cbd1 | |||
5d8a463475 | |||
7044f37b44 | |||
08443039aa | |||
fd8b81411c | |||
213bc50b49 | |||
00e81be52f | |||
35e044ddc8 |
7
.gitattributes
vendored
7
.gitattributes
vendored
@ -1,3 +1,4 @@
|
|||||||
# MAS export-ignore
|
MAS export-ignore
|
||||||
# LICENSE export-ignore
|
LICENSE export-ignore
|
||||||
# README.md export-ignore
|
README.md export-ignore
|
||||||
|
.gitattributes export-ignore
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
@::RANDOM-09dbb08f-d896-4653-b84f-24fc22f8d250
|
@::RANDOM-09dbb08f-d896-4653-b84f-24fc22f8d250
|
||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@setlocal DisableDelayedExpansion
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ goto dk_done
|
|||||||
cls
|
cls
|
||||||
color 07
|
color 07
|
||||||
title Microsoft %blank%Activation %blank%Scripts %masver%
|
title Microsoft %blank%Activation %blank%Scripts %masver%
|
||||||
if not defined terminal mode 76, 32
|
if not defined terminal mode 76, 33
|
||||||
|
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
@ -332,6 +332,8 @@ echo:
|
|||||||
echo: [5] Check Activation Status
|
echo: [5] Check Activation Status
|
||||||
echo: [6] Change Windows Edition
|
echo: [6] Change Windows Edition
|
||||||
echo: [7] Change Office Edition
|
echo: [7] Change Office Edition
|
||||||
|
echo: __________________________________________________
|
||||||
|
echo:
|
||||||
echo: [8] Troubleshoot
|
echo: [8] Troubleshoot
|
||||||
echo: [9] Extras
|
echo: [9] Extras
|
||||||
echo: [H] Help
|
echo: [H] Help
|
||||||
@ -1438,7 +1440,7 @@ if defined serv_e (
|
|||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
||||||
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
||||||
call :dk_color %Blue% "Restart your system to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1599,7 +1601,7 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu
|
|||||||
)
|
)
|
||||||
if defined _sppint (
|
if defined _sppint (
|
||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System May Deactivate Later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
set showfix=1
|
set showfix=1
|
||||||
) || (
|
) || (
|
||||||
@ -1685,7 +1687,7 @@ for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -
|
|||||||
echo !taskinfo! | find /i "Ready" %nul% || (
|
echo !taskinfo! | find /i "Ready" %nul% || (
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
||||||
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System May Deactivate Later]"
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -2441,9 +2443,9 @@ call :dk_color %Red% "Failed to uninstall Ohook activation."
|
|||||||
call :oh_checkapps
|
call :oh_checkapps
|
||||||
if defined checknames (
|
if defined checknames (
|
||||||
call :dk_color %Blue% "Close [!checknames!] and try again."
|
call :dk_color %Blue% "Close [!checknames!] and try again."
|
||||||
call :dk_color %Blue% "If it is still not fixed, then restart your system and try again."
|
call :dk_color %Blue% "If it is still not fixed, reboot your machine using the restart option and try again."
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Green% "Successfully uninstalled Ohook activation."
|
call :dk_color %Green% "Successfully uninstalled Ohook activation."
|
||||||
@ -2631,9 +2633,9 @@ echo:
|
|||||||
call :oh_checkapps
|
call :oh_checkapps
|
||||||
if defined checknames (
|
if defined checknames (
|
||||||
call :dk_color %Blue% "Close [!checknames!] and try again."
|
call :dk_color %Blue% "Close [!checknames!] and try again."
|
||||||
call :dk_color %Blue% "If it is still not fixed, then restart your system and try again."
|
call :dk_color %Blue% "If it is still not fixed, reboot your machine using the restart option and try again."
|
||||||
) else (
|
) else (
|
||||||
if /i not "%ierror%"=="Copy" call :dk_color %Blue% "Restart your system and try again."
|
if /i not "%ierror%"=="Copy" call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
if /i "%ierror%"=="Copy" call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
if /i "%ierror%"=="Copy" call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
)
|
)
|
||||||
echo:
|
echo:
|
||||||
@ -2922,13 +2924,13 @@ reg query HKU\%%# %nul% && set failedtounload=1
|
|||||||
if defined failedtoload (
|
if defined failedtoload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined failedtounload (
|
if defined failedtounload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
exit /b
|
exit /b
|
||||||
@ -3691,8 +3693,19 @@ if not exist "!_work!\clipup.exe" (
|
|||||||
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
|
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
|
||||||
echo The file is required for KMS38 activation.
|
echo The file is required for KMS38 activation.
|
||||||
echo Check the below page for instructions on how to activate it.
|
echo Check the below page for instructions on how to activate it.
|
||||||
set fixes=%fixes% %mas%kms38
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
|
||||||
echo %mas%kms38
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Check file signature
|
||||||
|
|
||||||
|
if defined a_cor (
|
||||||
|
%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
|
||||||
|
if !errorlevel!==3 (
|
||||||
|
%eline%
|
||||||
|
echo Valid digital signature not found in clipup.exe file.
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -7649,7 +7662,7 @@ echo Deleting a Volatile ^& Protected Registry Key...
|
|||||||
echo [%RegKey%]
|
echo [%RegKey%]
|
||||||
reg query "%RegKey%" %nul% && (
|
reg query "%RegKey%" %nul% && (
|
||||||
call :dk_color %Red% "[Failed]"
|
call :dk_color %Red% "[Failed]"
|
||||||
echo Restart your system, that will delete this registry key automatically.
|
echo Reboot your machine using the restart option, that will delete this registry key automatically.
|
||||||
) || (
|
) || (
|
||||||
echo [Successful]
|
echo [Successful]
|
||||||
)
|
)
|
||||||
@ -8871,7 +8884,7 @@ for /f %%a in ('%psc% "(Get-Date).ToString('yyyyMMdd-HHmmssfff')"') do set _time
|
|||||||
sc query TrustedInstaller | find /i "RUNNING" %nul% && (
|
sc query TrustedInstaller | find /i "RUNNING" %nul% && (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to stop the TrustedInstaller service.
|
echo Failed to stop the TrustedInstaller service.
|
||||||
echo Restart your system and try again.
|
echo Reboot your machine using the restart option and try again.
|
||||||
set preperror=1
|
set preperror=1
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
@ -8962,7 +8975,7 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: https://github.com/Gamers-Against-Weed/Set-WindowsCbsEdition
|
:: https://github.com/asdcorp/Set-WindowsCbsEdition
|
||||||
|
|
||||||
:cbsxml:[
|
:cbsxml:[
|
||||||
param (
|
param (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -1203,7 +1203,7 @@ if defined serv_e (
|
|||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
||||||
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
||||||
call :dk_color %Blue% "Restart your system to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1364,7 +1364,7 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu
|
|||||||
)
|
)
|
||||||
if defined _sppint (
|
if defined _sppint (
|
||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System May Deactivate Later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
set showfix=1
|
set showfix=1
|
||||||
) || (
|
) || (
|
||||||
@ -1450,7 +1450,7 @@ for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -
|
|||||||
echo !taskinfo! | find /i "Ready" %nul% || (
|
echo !taskinfo! | find /i "Ready" %nul% || (
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
||||||
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System May Deactivate Later]"
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -444,8 +444,19 @@ if not exist "!_work!\clipup.exe" (
|
|||||||
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
|
echo clipup.exe doesn't exist in Server Cor/Acor [No GUI] versions.
|
||||||
echo The file is required for KMS38 activation.
|
echo The file is required for KMS38 activation.
|
||||||
echo Check the below page for instructions on how to activate it.
|
echo Check the below page for instructions on how to activate it.
|
||||||
set fixes=%fixes% %mas%kms38
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%kms38"
|
||||||
echo %mas%kms38
|
goto dk_done
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
:: Check file signature
|
||||||
|
|
||||||
|
if defined a_cor (
|
||||||
|
%psc% "if (-not (Get-AuthenticodeSignature -FilePath '!_work!\clipup.exe').IsOSBinary) {Exit 3}" %nul%
|
||||||
|
if !errorlevel!==3 (
|
||||||
|
%eline%
|
||||||
|
echo Valid digital signature not found in clipup.exe file.
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1346,7 +1357,7 @@ if defined serv_e (
|
|||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
||||||
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
||||||
call :dk_color %Blue% "Restart your system to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1507,7 +1518,7 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu
|
|||||||
)
|
)
|
||||||
if defined _sppint (
|
if defined _sppint (
|
||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System May Deactivate Later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
set showfix=1
|
set showfix=1
|
||||||
) || (
|
) || (
|
||||||
@ -1593,7 +1604,7 @@ for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -
|
|||||||
echo !taskinfo! | find /i "Ready" %nul% || (
|
echo !taskinfo! | find /i "Ready" %nul% || (
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
||||||
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System May Deactivate Later]"
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -742,9 +742,9 @@ call :dk_color %Red% "Failed to uninstall Ohook activation."
|
|||||||
call :oh_checkapps
|
call :oh_checkapps
|
||||||
if defined checknames (
|
if defined checknames (
|
||||||
call :dk_color %Blue% "Close [!checknames!] and try again."
|
call :dk_color %Blue% "Close [!checknames!] and try again."
|
||||||
call :dk_color %Blue% "If it is still not fixed, then restart your system and try again."
|
call :dk_color %Blue% "If it is still not fixed, reboot your machine using the restart option and try again."
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Green% "Successfully uninstalled Ohook activation."
|
call :dk_color %Green% "Successfully uninstalled Ohook activation."
|
||||||
@ -932,9 +932,9 @@ echo:
|
|||||||
call :oh_checkapps
|
call :oh_checkapps
|
||||||
if defined checknames (
|
if defined checknames (
|
||||||
call :dk_color %Blue% "Close [!checknames!] and try again."
|
call :dk_color %Blue% "Close [!checknames!] and try again."
|
||||||
call :dk_color %Blue% "If it is still not fixed, then restart your system and try again."
|
call :dk_color %Blue% "If it is still not fixed, reboot your machine using the restart option and try again."
|
||||||
) else (
|
) else (
|
||||||
if /i not "%ierror%"=="Copy" call :dk_color %Blue% "Restart your system and try again."
|
if /i not "%ierror%"=="Copy" call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
if /i "%ierror%"=="Copy" call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
if /i "%ierror%"=="Copy" call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
)
|
)
|
||||||
echo:
|
echo:
|
||||||
@ -1223,13 +1223,13 @@ reg query HKU\%%# %nul% && set failedtounload=1
|
|||||||
if defined failedtoload (
|
if defined failedtoload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined failedtounload (
|
if defined failedtounload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
exit /b
|
exit /b
|
||||||
@ -1655,7 +1655,7 @@ if defined serv_e (
|
|||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
||||||
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
||||||
call :dk_color %Blue% "Restart your system to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -1816,7 +1816,7 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu
|
|||||||
)
|
)
|
||||||
if defined _sppint (
|
if defined _sppint (
|
||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System May Deactivate Later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
set showfix=1
|
set showfix=1
|
||||||
) || (
|
) || (
|
||||||
@ -1902,7 +1902,7 @@ for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -
|
|||||||
echo !taskinfo! | find /i "Ready" %nul% || (
|
echo !taskinfo! | find /i "Ready" %nul% || (
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
||||||
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System May Deactivate Later]"
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -1324,13 +1324,13 @@ reg query HKU\%%# %nul% && set failedtounload=1
|
|||||||
if defined failedtoload (
|
if defined failedtoload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
call :dk_color %Red% "Loading Unloaded Accounts Registry [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined failedtounload (
|
if defined failedtounload (
|
||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
call :dk_color %Red% "Unloading Loaded Account Registries [Failed for some user accounts]"
|
||||||
call :dk_color %Blue% "Restart your system and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
)
|
)
|
||||||
|
|
||||||
exit /b
|
exit /b
|
||||||
@ -2704,7 +2704,7 @@ if defined serv_e (
|
|||||||
set error=1
|
set error=1
|
||||||
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
call :dk_color %Red% "Starting Services [Failed] [%serv_e%]"
|
||||||
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
||||||
call :dk_color %Blue% "Restart your system to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -2865,7 +2865,7 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ima%w%ge File Execu
|
|||||||
)
|
)
|
||||||
if defined _sppint (
|
if defined _sppint (
|
||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System May Deactivate Later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
set showfix=1
|
set showfix=1
|
||||||
) || (
|
) || (
|
||||||
@ -2951,7 +2951,7 @@ for /f "delims=" %%a in ('%psc% "(Get-ScheduledTask -TaskName 'SvcRestartTask' -
|
|||||||
echo !taskinfo! | find /i "Ready" %nul% || (
|
echo !taskinfo! | find /i "Ready" %nul% || (
|
||||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform" /v "actionlist" /f %nul%
|
||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows\SoftwareProtectionPlatform\SvcRestartTask" %nul% || set taskinfo=Removed
|
||||||
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System May Deactivate Later]"
|
call :dk_color %Red% "Checking SvcRestartTask Status [!taskinfo!, System might deactivate later]"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -700,7 +700,7 @@ for /f %%a in ('%psc% "(Get-Date).ToString('yyyyMMdd-HHmmssfff')"') do set _time
|
|||||||
sc query TrustedInstaller | find /i "RUNNING" %nul% && (
|
sc query TrustedInstaller | find /i "RUNNING" %nul% && (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to stop the TrustedInstaller service.
|
echo Failed to stop the TrustedInstaller service.
|
||||||
echo Restart your system and try again.
|
echo Reboot your machine using the restart option and try again.
|
||||||
set preperror=1
|
set preperror=1
|
||||||
exit /b
|
exit /b
|
||||||
)
|
)
|
||||||
@ -1004,7 +1004,7 @@ exit /b
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: https://github.com/Gamers-Against-Weed/Set-WindowsCbsEdition
|
:: https://github.com/asdcorp/Set-WindowsCbsEdition
|
||||||
|
|
||||||
:cbsxml:[
|
:cbsxml:[
|
||||||
param (
|
param (
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.6
|
@set masver=2.7
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -547,7 +547,7 @@ echo Deleting a Volatile ^& Protected Registry Key...
|
|||||||
echo [%RegKey%]
|
echo [%RegKey%]
|
||||||
reg query "%RegKey%" %nul% && (
|
reg query "%RegKey%" %nul% && (
|
||||||
call :dk_color %Red% "[Failed]"
|
call :dk_color %Red% "[Failed]"
|
||||||
echo Restart your system, that will delete this registry key automatically.
|
echo Reboot your machine using the restart option, that will delete this registry key automatically.
|
||||||
) || (
|
) || (
|
||||||
echo [Successful]
|
echo [Successful]
|
||||||
)
|
)
|
||||||
|
30
README.md
30
README.md
@ -14,19 +14,19 @@
|
|||||||
|
|
||||||
## Download / How to use it?
|
## Download / How to use it?
|
||||||
|
|
||||||
### Method 1 - PowerShell (Recommended)
|
### Method 1 - PowerShell (Windows 8 and later) ❤️
|
||||||
|
|
||||||
- Right-click on the Windows start menu and select PowerShell or Terminal (Not CMD).
|
1. Open PowerShell (Not CMD). To do that, right-click on the Windows start menu and select PowerShell or Terminal.
|
||||||
- Copy and paste the code below and press enter
|
2. Copy and paste the code below and press enter
|
||||||
```
|
```
|
||||||
irm https://get.activated.win | iex
|
irm https://get.activated.win | iex
|
||||||
```
|
```
|
||||||
or (deprecated, will be retired on Aug 31 2024, use above instead)
|
or (deprecated, will be retired on Dec 31 2024, use above instead)
|
||||||
```
|
```
|
||||||
irm https://massgrave.dev/get | iex
|
irm https://massgrave.dev/get | iex
|
||||||
```
|
```
|
||||||
- You will see the activation options. Follow the on-screen instructions.
|
3. You will see the activation options. Choose [1] HWID for Windows activation. Choose [2] Ohook for Office activation.
|
||||||
- That's all.
|
4. That's all.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -35,22 +35,22 @@ irm https://massgrave.dev/get | iex
|
|||||||
- The Powershell method does not work on Windows 7. Use the Method 2 - Traditional instead.
|
- The Powershell method does not work on Windows 7. Use the Method 2 - Traditional instead.
|
||||||
- The URL get.activated.win may be blocked by some DNS services because it is a new domain.
|
- The URL get.activated.win may be blocked by some DNS services because it is a new domain.
|
||||||
|
|
||||||
### Method 2 - Traditional
|
### Method 2 - Traditional (Windows 7 and later)
|
||||||
|
|
||||||
- Download the file under the code button from [GitHub](https://github.com/massgravel/Microsoft-Activation-Scripts) or [Bitbucket](https://bitbucket.org/WindowsAddict/microsoft-activation-scripts)
|
1. Download the file under the code button from [GitHub](https://github.com/massgravel/Microsoft-Activation-Scripts) or [Bitbucket](https://bitbucket.org/WindowsAddict/microsoft-activation-scripts) or [Codeberg](https://codeberg.org/massgravel/Microsoft-Activation-Scripts)
|
||||||
- Right-click on the downloaded zip file and extract
|
2. Right-click on the downloaded zip file and extract
|
||||||
- In the extracted folder, find the folder named `All-In-One-Version`
|
3. In the extracted folder, find the folder named `All-In-One-Version`
|
||||||
- Run the file named `MAS_AIO-CRC32_XXXXXXXX.cmd`
|
4. Run the file named `MAS_AIO.cmd`
|
||||||
- You will see the activation options, follow the on-screen instructions.
|
5. You will see the activation options, follow the on-screen instructions.
|
||||||
- That's all.
|
6. That's all.
|
||||||
|
|
||||||
To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches)
|
To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches)
|
||||||
|
|
||||||
</br>
|
</br>
|
||||||
|
|
||||||
```
|
```
|
||||||
Latest Version: 2.6
|
Latest Version: 2.7
|
||||||
Release date: 20-Apr-2024
|
Release date: 6-Sep-2024
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
|
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
|
||||||
|
Reference in New Issue
Block a user