summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWindowsAddict <[email protected]>2024-11-08 02:35:41 +0530
committerWindowsAddict <[email protected]>2024-11-08 02:35:41 +0530
commit99954a905601654388199f1d71ca94d112dce191 (patch)
treebb313b07b00bac0207846a8a66597991b3dd4386
parentfcb710a48aed6a69eacf574e6a16c559953de4e6 (diff)
downloadMicrosoft-Activation-Scripts-99954a905601654388199f1d71ca94d112dce191.zip
Add troubleshooting info for IMAGE_STATE_UNDEPLOYABLE
-rw-r--r--MAS/All-In-One-Version-KL/MAS_AIO.cmd11
-rw-r--r--MAS/Separate-Files-Version/Activators/HWID_Activation.cmd11
-rw-r--r--MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd11
-rw-r--r--MAS/Separate-Files-Version/Activators/Ohook_Activation_AIO.cmd11
-rw-r--r--MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd11
5 files changed, 45 insertions, 10 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
index 0544fcb..10b87fa 100644
--- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd
+++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
@@ -1455,14 +1455,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"
+)
)
diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
index 5a8fee4..cc48f02 100644
--- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
@@ -1218,14 +1218,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"
+)
)
diff --git a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
index cc19e3e..c0bfd47 100644
--- a/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/KMS38_Activation.cmd
@@ -1372,14 +1372,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"
+)
)
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"
+)
)
diff --git a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd
index 8a39d2b..eb593f8 100644
--- a/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/Online_KMS_Activation.cmd
@@ -2784,14 +2784,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"
+)
)