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