mirror of
				https://github.com/massgravel/Microsoft-Activation-Scripts.git
				synced 2025-10-30 08:01:39 +00:00 
			
		
		
		
	Show update related troubleshooting when activation fails
This commit is contained in:
		
							parent
							
								
									c00b076a86
								
							
						
					
					
						commit
						d6aa8b97d1
					
				
					 2 changed files with 34 additions and 8 deletions
				
			
		|  | @ -900,29 +900,42 @@ call :dk_color %Red% "Generating New IdentityCRL Registry     [Failed] [%_ident% | |||
| 
 | ||||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %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 call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| if defined wublock ( | ||||
| call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| 
 | ||||
| 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]" | ||||
| call :dk_color %Blue% "If you have used any tool to block Store, undo it." | ||||
| ) | ||||
| 
 | ||||
| set wcount=0 | ||||
| for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || set wucorrupt=1 | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1) | ||||
| ) | ||||
| 
 | ||||
| for %%G in (Parameters Security TriggerInfo) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1 | ||||
| for %%G in (Parameters Security) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1) | ||||
| ) | ||||
| 
 | ||||
| if defined wucorrupt ( | ||||
| 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." | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| ) else ( | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| ) else ( | ||||
| %psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null" | ||||
| sc query wuauserv | find /i "RUNNING" %nul% || ( | ||||
| set wuerror=1 | ||||
| sc start wuauserv %nul% | ||||
| call :dk_color %Red% "Starting Windows Update Service         [Failed] [!errorlevel!]" | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
|  | @ -663,29 +663,42 @@ call :dk_color %Red% "Generating New IdentityCRL Registry     [Failed] [%_ident% | |||
| 
 | ||||
| reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWindowsUpdateAccess %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 call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| if defined wublock ( | ||||
| call :dk_color %Red% "Checking Update Blocker In Registry     [Found]" | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| 
 | ||||
| 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]" | ||||
| call :dk_color %Blue% "If you have used any tool to block Store, undo it." | ||||
| ) | ||||
| 
 | ||||
| set wcount=0 | ||||
| for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || set wucorrupt=1 | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1) | ||||
| ) | ||||
| 
 | ||||
| for %%G in (Parameters Security TriggerInfo) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1 | ||||
| for %%G in (Parameters Security) do if not defined wucorrupt ( | ||||
| reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1) | ||||
| ) | ||||
| 
 | ||||
| if defined wucorrupt ( | ||||
| 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." | ||||
| set fixes=%fixes% %mas%remove_mal%w%ware | ||||
| call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%remove_mal%w%ware" | ||||
| ) else ( | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| ) else ( | ||||
| %psc% "Start-Job { Start-Service wuauserv } | Wait-Job -Timeout 20 | Out-Null" | ||||
| sc query wuauserv | find /i "RUNNING" %nul% || ( | ||||
| set wuerror=1 | ||||
| sc start wuauserv %nul% | ||||
| call :dk_color %Red% "Starting Windows Update Service         [Failed] [!errorlevel!]" | ||||
| call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it." | ||||
| ) | ||||
| ) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 WindowsAddict
						WindowsAddict