From 99954a905601654388199f1d71ca94d112dce191 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Fri, 8 Nov 2024 02:35:41 +0530 Subject: Add troubleshooting info for IMAGE_STATE_UNDEPLOYABLE --- .../Activators/Ohook_Activation_AIO.cmd | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd') diff --git a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd index e890ae2..1b82bac 100644 --- a/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd +++ b/MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd @@ -1698,14 +1698,21 @@ call :dk_color2 %Red% "Checking Boot Mode [%safeboot_option ) +:: https://learn.microsoft.com/windows-hardware/manufacture/desktop/windows-setup-states + for /f "skip=2 tokens=2*" %%A in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\State" /v ImageState') do (set imagestate=%%B) + if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" ( -call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]" -echo "%imagestate%" | find /i "RESEAL" %nul% && ( set error=1 set showfix=1 +call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]" +echo "%imagestate%" | find /i "RESEAL" %nul% && ( call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode." ) +echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && ( +set fixes=%fixes% %mas%in-place_repair_upgrade +call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade" +) ) -- cgit v1.2.3