Compare commits
3 Commits
c00b076a86
...
0d9ffd2052
Author | SHA1 | Date | |
---|---|---|---|
0d9ffd2052 | |||
9f00df5aee | |||
d6aa8b97d1 |
@ -1,5 +1,5 @@
|
|||||||
@::b879-random
|
@::b879-random
|
||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@setlocal DisableDelayedExpansion
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -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 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
|
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% && (
|
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]"
|
||||||
|
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 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 (
|
for %%G in (Parameters Security) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined wucorrupt (
|
if defined wucorrupt (
|
||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
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 (
|
) 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"
|
||||||
sc query wuauserv | find /i "RUNNING" %nul% || (
|
sc query wuauserv | find /i "RUNNING" %nul% || (
|
||||||
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!]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1466,6 +1479,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -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 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
|
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% && (
|
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]"
|
||||||
|
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 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 (
|
for %%G in (Parameters Security) do if not defined wucorrupt (
|
||||||
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || set wucorrupt=1
|
reg query HKLM\SYSTEM\CurrentControlSet\Services\wuauserv\%%G %nul% || (set wucorrupt=1&set /a wcount+=1)
|
||||||
)
|
)
|
||||||
|
|
||||||
if defined wucorrupt (
|
if defined wucorrupt (
|
||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
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 (
|
) 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"
|
||||||
sc query wuauserv | find /i "RUNNING" %nul% || (
|
sc query wuauserv | find /i "RUNNING" %nul% || (
|
||||||
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!]"
|
||||||
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -1213,6 +1226,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -112,7 +112,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -1378,6 +1378,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -1707,6 +1707,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -134,7 +134,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
@ -2808,6 +2808,11 @@ echo %serv_e% | findstr /i "ClipSVC-1058 sppsvc-1058" %nul% && (
|
|||||||
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
call :dk_color %Blue% "Reboot your machine using the restart option to fix this error."
|
||||||
set showfix=1
|
set showfix=1
|
||||||
)
|
)
|
||||||
|
echo %serv_e% | findstr /i "sppsvc-1060" %nul% && (
|
||||||
|
set fixes=%fixes% %mas%fix_service
|
||||||
|
call :dk_color2 %Blue% "Help - " %_Yellow% " %mas%fix_service"
|
||||||
|
set showfix=1
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
@set masver=2.8
|
@set masver=2.9
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ echo:
|
|||||||
echo Null service is not running, script may crash...
|
echo Null service is not running, script may crash...
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
echo Help - %mas%troubleshoot
|
echo Help - %mas%fix_service
|
||||||
echo:
|
echo:
|
||||||
echo:
|
echo:
|
||||||
ping 127.0.0.1 -n 20
|
ping 127.0.0.1 -n 20
|
||||||
|
37
README.md
37
README.md
@ -61,8 +61,8 @@ or
|
|||||||
To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches).
|
To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches).
|
||||||
|
|
||||||
```
|
```
|
||||||
Latest Version: 2.8
|
Latest Version: 2.9
|
||||||
Release date: 9-Nov-2024
|
Release date: 20-Dec-2024
|
||||||
```
|
```
|
||||||
|
|
||||||
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
|
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
|
||||||
@ -74,19 +74,34 @@ Release date: 9-Nov-2024
|
|||||||
[![1.1]][1]
|
[![1.1]][1]
|
||||||
[![1.2]][2]
|
[![1.2]][2]
|
||||||
[![1.3]][3]
|
[![1.3]][3]
|
||||||
[![1.4]][4]
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
[1.1]: https://massgrave.dev/img/logo_discord.png (Chat with us without signup)
|
<div align="center">
|
||||||
[1.2]: https://massgrave.dev/img/logo_github.png (GitHub)
|
|
||||||
[1.3]: https://massgrave.dev/img/logo_reddit.png (Reddit)
|
|
||||||
[1.4]: https://massgrave.dev/img/logo_x.png (Follow us on X)
|
|
||||||
|
|
||||||
[1]: https://discord.gg/tVFN4N84PP
|
[![1.4]][4]
|
||||||
[2]: https://github.com/massgravel/Microsoft-Activation-Scripts
|
[![1.5]][5]
|
||||||
[3]: https://www.reddit.com/r/MAS_Activator
|
[![1.6]][6]
|
||||||
[4]: https://twitter.com/massgravel
|
[![1.7]][7]
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
[1.1]: https://massgrave.dev/img/logo_github.png (GitHub)
|
||||||
|
[1.2]: https://massgrave.dev/img/logo_azuredevops.png (AzureDevOps)
|
||||||
|
[1.3]: https://massgrave.dev/img/logo_gitea.png (Self-hosted Git)
|
||||||
|
|
||||||
|
[1.4]: https://massgrave.dev/img/logo_discord.png (Chat with us without signup)
|
||||||
|
[1.5]: https://massgrave.dev/img/logo_reddit.png (Reddit)
|
||||||
|
[1.6]: https://massgrave.dev/img/logo_bluesky.png (Bluesky)
|
||||||
|
[1.7]: https://massgrave.dev/img/logo_x.png (Twitter)
|
||||||
|
|
||||||
|
[1]: https://github.com/massgravel/Microsoft-Activation-Scripts
|
||||||
|
[2]: https://dev.azure.com/massgrave/_git/Microsoft-Activation-Scripts
|
||||||
|
[3]: https://git.activated.win/massgrave/Microsoft-Activation-Scripts
|
||||||
|
[4]: https://discord.gg/j2yFsV5ZVC
|
||||||
|
[5]: https://www.reddit.com/r/MAS_Activator
|
||||||
|
[6]: https://bsky.app/profile/massgrave.dev
|
||||||
|
[7]: https://twitter.com/massgravel
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user