1
0
mirror of https://github.com/massgravel/Microsoft-Activation-Scripts.git synced 2025-03-17 05:23:36 +00:00

4 Commits

Author SHA1 Message Date
08443039aa Reword again 2024-09-01 03:24:58 +05:30
fd8b81411c Reword the restart line 2024-09-01 02:50:49 +05:30
213bc50b49 Update asdcorp's Set-WindowsCbsEdition link 2024-09-01 02:41:55 +05:30
00e81be52f Reword some sentences 2024-09-01 02:39:12 +05:30
7 changed files with 35 additions and 35 deletions

View File

@ -1438,7 +1438,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 +1599,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 +1685,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 +2441,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 +2631,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 +2922,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
@ -7649,7 +7649,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 +8871,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 +8962,7 @@ exit /b
::======================================================================================================================================== ::========================================================================================================================================
:: https://github.com/Gamers-Against-Weed/Set-WindowsCbsEdition :: https://github.com/asdcorp/Set-WindowsCbsEdition
:cbsxml:[ :cbsxml:[
param ( param (

View File

@ -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]"
) )
) )

View File

@ -1346,7 +1346,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 +1507,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 +1593,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]"
) )
) )

View File

@ -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]"
) )
) )

View File

@ -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]"
) )
) )

View File

@ -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 (

View File

@ -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]
) )