mirror of
				https://github.com/massgravel/Microsoft-Activation-Scripts.git
				synced 2025-10-30 08:01:39 +00:00 
			
		
		
		
	Compare commits
	
		
			2 commits
		
	
	
		
			904e96d748
			...
			e2c52b4ac8
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | e2c52b4ac8 | ||
|   | 31c47b9538 | 
					 10 changed files with 228 additions and 126 deletions
				
			
		|  | @ -255,6 +255,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -268,17 +279,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -974,7 +974,9 @@ call :dk_color %Red% "Checking Ticket Migration               [Failed]" | |||
| 
 | ||||
| if not defined altapplist if not defined showfix if defined rebuildinfo ( | ||||
| set showfix=1 | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| if exist "%tdir%\Genuine*" del /f /q "%tdir%\Genuine*" %nul% | ||||
|  | @ -1044,8 +1046,10 @@ licensing.mp.microsoft.com | |||
| findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]" | ||||
| ) | ||||
| call :dk_color %Red% "Checking Licensing Servers              [Failed to Connect]!hosfail!" | ||||
| echo: | ||||
| set fixes=%fixes% %mas%licensing-servers-issue | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| ::========================================================================================================================================== | ||||
|  | @ -1058,13 +1062,17 @@ reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWin | |||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1 | ||||
| if defined wublock ( | ||||
| call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && ( | ||||
| set storeblock=1 | ||||
| call :dk_color %Red% "Checking Store Blocker In Registry      [Found]" | ||||
| echo: | ||||
| call :dk_color %Blue% "If you have used any tool to block Store, undo it." | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| set wcount=0 | ||||
|  | @ -1081,10 +1089,14 @@ set error=1 | |||
| call :dk_color %Red% "Checking Windows Update Registry        [Corruption Found]" | ||||
| if !wcount! GTR 2 ( | ||||
| call :dk_color %Red% "Windows seems to be infected with Mal%w%ware." | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
| ) else ( | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| ) else ( | ||||
| %psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null" | ||||
|  | @ -1093,7 +1105,9 @@ set error=1 | |||
| set wuerror=1 | ||||
| sc start wuauserv %nul% | ||||
| call :dk_color %Red% "Starting Windows Update Service         [Failed] [!errorlevel!]" | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| ) | ||||
| ) | ||||
|  | @ -1106,8 +1120,10 @@ if %keyerror% EQU 0 if not defined _perm if defined _int ( | |||
| if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail ( | ||||
| echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && ( | ||||
| call :dk_color %Red% "Checking Internet Issues                [Found] %error_code%" | ||||
| echo: | ||||
| set fixes=%fixes% %mas%licensing-servers-issue | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue" | ||||
| echo: | ||||
| ) | ||||
| ) | ||||
| ) | ||||
|  | @ -1314,9 +1330,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -1533,6 +1551,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  | @ -3609,7 +3628,15 @@ set upk_result=2 | |||
| 
 | ||||
| if defined ohookact if not %upk_result%==0 echo: | ||||
| if %upk_result%==1 echo Uninstalling Other/Grace Keys           [Successful] | ||||
| if %upk_result%==2 call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if %upk_result%==2 ( | ||||
| call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if not defined showfix ( | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| ) | ||||
| exit /b | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -5750,6 +5777,7 @@ call :dk_color %Gray% "To activate, check your internet connection and ensure th | |||
| ) else ( | ||||
| call :dk_color %Blue% "This Windows version is known to not activate due to MS Windows/Server issues." | ||||
| ) | ||||
| if not defined showfix call :dk_color %Blue% "%_fixmsg%" | ||||
| set fixes=%fixes% %mas%troubleshoot | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot" | ||||
| ) | ||||
|  | @ -5766,7 +5794,7 @@ if /i %tsmethod%==StaticCID (echo Depositing Static Confirmation ID...) else (ec | |||
| echo: | ||||
| %psc% "$f=[System.IO.File]::ReadAllText('!_batp!') -split ':tsforge\:.*';. ([scriptblock]::Create($f[1])) %tsids%" | ||||
| if !errorlevel!==3 ( | ||||
| if %_actman%==0 (if not defined error call :dk_color %Blue% "%_fixmsg%") | ||||
| if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%") | ||||
| set fixes=%fixes% %mas%troubleshoot | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot" | ||||
| ) else ( | ||||
|  | @ -12260,9 +12288,9 @@ set k_error= | |||
| %nul% reg add "HKLM\%specific_kms%\%app%" /f /v KeyManagementServicePort /t REG_SZ /d "1688" || set k_error=1 | ||||
| 
 | ||||
| if not defined k_error ( | ||||
| echo Adding Specific KMS Host                [LocalHost 127.0.0.2] [Successful] | ||||
| echo Adding Specific KMS Host                [LocalHost] [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "Adding Specific KMS Host                [LocalHost 127.0.0.2] [Failed]" | ||||
| call :dk_color %Red% "Adding Specific KMS Host                [LocalHost] [Failed]" | ||||
| ) | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -12358,7 +12386,9 @@ call :dk_color %Red% "Checking Ticket Migration               [Failed]" | |||
| 
 | ||||
| if not defined showfix if defined rebuildinfo ( | ||||
| set showfix=1 | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| if exist "%tdir%\Genuine*" del /f /q "%tdir%\Genuine*" %nul% | ||||
|  | @ -13585,6 +13615,9 @@ call :ks_clearstuff | |||
| set error_=9 | ||||
| echo Failed to completely clear %KS% Cache. | ||||
| reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked. | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) || ( | ||||
| echo Cleared %KS% Cache successfully. | ||||
| ) | ||||
|  | @ -13600,6 +13633,10 @@ echo %uline% | |||
| echo %uline% | ||||
| echo: | ||||
| call :dk_color %Green% "Online %KS% has been successfully uninstalled." | ||||
| echo: | ||||
| call :dk_color %Gray% "If you want to reset the activation status," | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| echo %uline% | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
|  | @ -277,6 +277,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -290,17 +301,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -674,7 +674,9 @@ call :dk_color %Red% "Checking Ticket Migration               [Failed]" | |||
| 
 | ||||
| if not defined altapplist if not defined showfix if defined rebuildinfo ( | ||||
| set showfix=1 | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| if exist "%tdir%\Genuine*" del /f /q "%tdir%\Genuine*" %nul% | ||||
|  | @ -744,8 +746,10 @@ licensing.mp.microsoft.com | |||
| findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]" | ||||
| ) | ||||
| call :dk_color %Red% "Checking Licensing Servers              [Failed to Connect]!hosfail!" | ||||
| echo: | ||||
| set fixes=%fixes% %mas%licensing-servers-issue | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| ::========================================================================================================================================== | ||||
|  | @ -758,13 +762,17 @@ reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWin | |||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations %nul2% | find /i "0x1" %nul% && set wublock=1 | ||||
| if defined wublock ( | ||||
| call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\WindowsStore" /v DisableStoreApps %nul2% | find /i "0x1" %nul% && ( | ||||
| set storeblock=1 | ||||
| call :dk_color %Red% "Checking Store Blocker In Registry      [Found]" | ||||
| echo: | ||||
| call :dk_color %Blue% "If you have used any tool to block Store, undo it." | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| set wcount=0 | ||||
|  | @ -781,10 +789,14 @@ set error=1 | |||
| call :dk_color %Red% "Checking Windows Update Registry        [Corruption Found]" | ||||
| if !wcount! GTR 2 ( | ||||
| call :dk_color %Red% "Windows seems to be infected with Mal%w%ware." | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
| ) else ( | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| ) else ( | ||||
| %psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null" | ||||
|  | @ -793,7 +805,9 @@ set error=1 | |||
| set wuerror=1 | ||||
| sc start wuauserv %nul% | ||||
| call :dk_color %Red% "Starting Windows Update Service         [Failed] [!errorlevel!]" | ||||
| echo: | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| echo: | ||||
| ) | ||||
| ) | ||||
| ) | ||||
|  | @ -806,8 +820,10 @@ if %keyerror% EQU 0 if not defined _perm if defined _int ( | |||
| if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail ( | ||||
| echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && ( | ||||
| call :dk_color %Red% "Checking Internet Issues                [Found] %error_code%" | ||||
| echo: | ||||
| set fixes=%fixes% %mas%licensing-servers-issue | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue" | ||||
| echo: | ||||
| ) | ||||
| ) | ||||
| ) | ||||
|  | @ -1014,9 +1030,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -1217,6 +1235,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  |  | |||
|  | @ -276,6 +276,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -289,17 +300,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -695,9 +695,9 @@ set k_error= | |||
| %nul% reg add "HKLM\%specific_kms%\%app%" /f /v KeyManagementServicePort /t REG_SZ /d "1688" || set k_error=1 | ||||
| 
 | ||||
| if not defined k_error ( | ||||
| echo Adding Specific KMS Host                [LocalHost 127.0.0.2] [Successful] | ||||
| echo Adding Specific KMS Host                [LocalHost] [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "Adding Specific KMS Host                [LocalHost 127.0.0.2] [Failed]" | ||||
| call :dk_color %Red% "Adding Specific KMS Host                [LocalHost] [Failed]" | ||||
| ) | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -793,7 +793,9 @@ call :dk_color %Red% "Checking Ticket Migration               [Failed]" | |||
| 
 | ||||
| if not defined showfix if defined rebuildinfo ( | ||||
| set showfix=1 | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) | ||||
| 
 | ||||
| if exist "%tdir%\Genuine*" del /f /q "%tdir%\Genuine*" %nul% | ||||
|  | @ -1089,9 +1091,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -1316,6 +1320,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  |  | |||
|  | @ -285,6 +285,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -298,17 +309,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -1601,7 +1601,15 @@ set upk_result=2 | |||
| 
 | ||||
| if defined ohookact if not %upk_result%==0 echo: | ||||
| if %upk_result%==1 echo Uninstalling Other/Grace Keys           [Successful] | ||||
| if %upk_result%==2 call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if %upk_result%==2 ( | ||||
| call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if not defined showfix ( | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| ) | ||||
| exit /b | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -1743,9 +1751,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -1899,6 +1909,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  |  | |||
|  | @ -316,6 +316,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -329,17 +340,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -1579,7 +1579,15 @@ set upk_result=2 | |||
| 
 | ||||
| if defined ohookact if not %upk_result%==0 echo: | ||||
| if %upk_result%==1 echo Uninstalling Other/Grace Keys           [Successful] | ||||
| if %upk_result%==2 call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if %upk_result%==2 ( | ||||
| call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if not defined showfix ( | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| ) | ||||
| exit /b | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -1628,6 +1636,9 @@ call :ks_clearstuff | |||
| set error_=9 | ||||
| echo Failed to completely clear %KS% Cache. | ||||
| reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked. | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| ) || ( | ||||
| echo Cleared %KS% Cache successfully. | ||||
| ) | ||||
|  | @ -1643,6 +1654,10 @@ echo %uline% | |||
| echo %uline% | ||||
| echo: | ||||
| call :dk_color %Green% "Online %KS% has been successfully uninstalled." | ||||
| echo: | ||||
| call :dk_color %Gray% "If you want to reset the activation status," | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| echo %uline% | ||||
| ) | ||||
| 
 | ||||
|  | @ -2712,9 +2727,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -2955,6 +2972,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  |  | |||
|  | @ -343,6 +343,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -356,17 +367,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  | @ -1927,6 +1927,7 @@ call :dk_color %Gray% "To activate, check your internet connection and ensure th | |||
| ) else ( | ||||
| call :dk_color %Blue% "This Windows version is known to not activate due to MS Windows/Server issues." | ||||
| ) | ||||
| if not defined showfix call :dk_color %Blue% "%_fixmsg%" | ||||
| set fixes=%fixes% %mas%troubleshoot | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot" | ||||
| ) | ||||
|  | @ -1943,7 +1944,7 @@ if /i %tsmethod%==StaticCID (echo Depositing Static Confirmation ID...) else (ec | |||
| echo: | ||||
| %psc% "$f=[System.IO.File]::ReadAllText('!_batp!') -split ':tsforge\:.*';. ([scriptblock]::Create($f[1])) %tsids%" | ||||
| if !errorlevel!==3 ( | ||||
| if %_actman%==0 (if not defined error call :dk_color %Blue% "%_fixmsg%") | ||||
| if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%") | ||||
| set fixes=%fixes% %mas%troubleshoot | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot" | ||||
| ) else ( | ||||
|  | @ -2537,7 +2538,15 @@ set upk_result=2 | |||
| 
 | ||||
| if defined ohookact if not %upk_result%==0 echo: | ||||
| if %upk_result%==1 echo Uninstalling Other/Grace Keys           [Successful] | ||||
| if %upk_result%==2 call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if %upk_result%==2 ( | ||||
| call :dk_color %Red% "Uninstalling Other/Grace Keys           [Failed]" | ||||
| if not defined showfix ( | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| ) | ||||
| exit /b | ||||
| 
 | ||||
| ::======================================================================================================================================== | ||||
|  | @ -2766,9 +2775,11 @@ if %sps%==SoftwareLicensingService call :dk_refresh | |||
| echo %keyecho% %~1 [Successful] | ||||
| ) else ( | ||||
| call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%" | ||||
| if not defined error ( | ||||
| if not defined showfix ( | ||||
| if defined altapplist call :dk_color %Red% "Activation ID not found for this key." | ||||
| echo: | ||||
| call :dk_color %Blue% "%_fixmsg%" | ||||
| echo: | ||||
| set showfix=1 | ||||
| ) | ||||
| set error=1 | ||||
|  | @ -2967,6 +2978,7 @@ if not "%results%%pupfound%"=="" ( | |||
| if defined pupfound call :dk_color %Gray% "Checking PUP Activators                 [Found%pupfound%]" | ||||
| if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..." | ||||
| if defined results (call :dk_color %Red% "%results%"&set showfix=1) | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| echo: | ||||
|  |  | |||
|  | @ -230,6 +230,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -243,17 +254,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  |  | |||
|  | @ -235,6 +235,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -248,17 +259,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  |  | |||
|  | @ -246,6 +246,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto done2 | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto done2 | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -259,17 +270,6 @@ goto done2 | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto done2 | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  |  | |||
|  | @ -247,6 +247,17 @@ call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-plac | |||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check if .NET is working properly | ||||
| 
 | ||||
| if /i "!tstresult2!"=="FullLanguage" ( | ||||
|  | @ -260,17 +271,6 @@ goto dk_done | |||
| ) | ||||
| ) | ||||
| 
 | ||||
| REM check for Mal-ware that may cause issues with Powershell | ||||
| 
 | ||||
| for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" ( | ||||
| echo "%%f" | ||||
| echo Mal%blank%ware found, PowerShell is not working properly. | ||||
| echo: | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| goto dk_done | ||||
| ) | ||||
| 
 | ||||
| REM check antivirus and other errors | ||||
| 
 | ||||
| echo PowerShell is not working properly. Aborting... | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue