summaryrefslogtreecommitdiff
path: root/MAS
diff options
context:
space:
mode:
authorWindowsAddict2024-12-21 10:18:02 +0000
committerWindowsAddict2024-12-21 10:18:02 +0000
commit37ec96504a2983a5801c43e975ab78c8f9315d2a (patch)
tree60ca056c4326a55247d15ca392e011e4a0309308 /MAS
parent051b4f673f070c1fd2728c82a700ca26b168cb32 (diff)
downloadMicrosoft-Activation-Scripts-37ec96504a2983a5801c43e975ab78c8f9315d2a.zip
Fix registry count
Diffstat (limited to 'MAS')
-rw-r--r--MAS/All-In-One-Version-KL/MAS_AIO.cmd4
-rw-r--r--MAS/Separate-Files-Version/Activators/HWID_Activation.cmd4
2 files changed, 4 insertions, 4 deletions
diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
index 9481e18..1d800ca 100644
--- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd
+++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd
@@ -912,11 +912,11 @@ 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 (
+for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do (
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1)
)
-for %%G in (Parameters Security) do if not defined wucorrupt (
+for %%G in (Parameters Security) do (
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
)
diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
index 2e86baf..0d43bc6 100644
--- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
+++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd
@@ -675,11 +675,11 @@ 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 (
+for %%G in (DependOnService Description DisplayName ErrorControl ImagePath ObjectName Start Type ServiceSidType RequiredPrivileges FailureActions) do (
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv /v %%G %nul% || (set wucorrupt=1&set /a wcount+=1)
)
-for %%G in (Parameters Security) do if not defined wucorrupt (
+for %%G in (Parameters Security) do (
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
)