mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2026-01-31 14:51:02 +00:00
Compare commits
39 Commits
77c4bacde6
...
3.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a5435a349b | ||
|
|
4fdefbc0d5 | ||
|
|
63da908027 | ||
|
|
146d828b46 | ||
|
|
d7302ee41b | ||
|
|
72cd62552e | ||
|
|
8d8ed5d098 | ||
|
|
f0d13cb216 | ||
|
|
a93b4b3f4b | ||
|
|
a353813814 | ||
|
|
da9358e4d8 | ||
|
|
3024b1ca98 | ||
|
|
31a79148b1 | ||
|
|
da0b2800d9 | ||
|
|
54a1ec3d54 | ||
|
|
5f40fb4a79 | ||
|
|
541364642b | ||
|
|
2bc48bfd4d | ||
|
|
f69e4ff432 | ||
|
|
f8f37b38fe | ||
|
|
3c7178aaf6 | ||
|
|
41783f7a23 | ||
|
|
e7e73a8fbc | ||
|
|
7327f3b445 | ||
|
|
27f21a13d5 | ||
|
|
7f3372d778 | ||
|
|
4958ddf474 | ||
|
|
eeae1dd931 | ||
|
|
d16661cc87 | ||
|
|
1ee7cd1e60 | ||
|
|
55cc6d95d1 | ||
|
|
f4e08dac3d | ||
|
|
979dfb750b | ||
|
|
82f7cfe5f4 | ||
|
|
0a35a00266 | ||
|
|
4bf82f576c | ||
|
|
1e444671be | ||
|
|
0aee35e673 | ||
|
|
b064fc628a |
8
.gitattributes
vendored
8
.gitattributes
vendored
@@ -1,4 +1,4 @@
|
|||||||
# MAS export-ignore
|
MAS export-ignore
|
||||||
# LICENSE export-ignore
|
LICENSE export-ignore
|
||||||
# README.md export-ignore
|
README.md export-ignore
|
||||||
# .gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
|
|||||||
@@ -1,19 +1,18 @@
|
|||||||
@::r45f3r3-random
|
@::ab7249d77random13141b5922144806de5d43f
|
||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@setlocal DisableDelayedExpansion
|
@setlocal DisableDelayedExpansion
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
:: For command line switches, check mass()grave(dot)dev/command_line_switches
|
:: For command line switches, check m{}assgrave{dot}dev/command_line_switches
|
||||||
:: If you want to better understand script, read from separate files version.
|
:: If you want to better understand script, read from separate files version.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -67,9 +66,9 @@ exit /b
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -240,7 +239,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -250,7 +248,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -261,7 +258,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -273,7 +269,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -294,7 +289,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -680,7 +674,6 @@ if %winbuild% LSS 10240 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
echo HWID Activation is only supported on Windows 10/11.
|
echo HWID Activation is only supported on Windows 10/11.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
|
call :dk_color %Blue% "Use TSforge activation option from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -718,9 +711,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -765,7 +757,6 @@ echo [%winos% ^| %winbuild%]
|
|||||||
echo:
|
echo:
|
||||||
echo Evaluation editions cannot be activated outside of their evaluation period.
|
echo Evaluation editions cannot be activated outside of their evaluation period.
|
||||||
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
|
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -966,7 +957,6 @@ call :dk_color %Red% "Checking Ticket Migration [Failed]"
|
|||||||
|
|
||||||
if not defined altapplist if not defined showfix if defined rebuildinfo (
|
if not defined altapplist if not defined showfix if defined rebuildinfo (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1038,7 +1028,6 @@ licensing.mp.microsoft.com
|
|||||||
findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]"
|
findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]"
|
||||||
)
|
)
|
||||||
call :dk_color %Red% "Checking Licensing Servers [Failed to Connect]!hosfail!"
|
call :dk_color %Red% "Checking Licensing Servers [Failed to Connect]!hosfail!"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%licensing-servers-issue
|
set fixes=%fixes% %mas%licensing-servers-issue
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
||||||
echo:
|
echo:
|
||||||
@@ -1054,7 +1043,6 @@ reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWin
|
|||||||
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 (
|
if defined wublock (
|
||||||
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1062,7 +1050,6 @@ echo:
|
|||||||
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]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1081,12 +1068,10 @@ set error=1
|
|||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
||||||
if !wcount! GTR 2 (
|
if !wcount! GTR 2 (
|
||||||
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
) else (
|
) else (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1097,7 +1082,6 @@ set error=1
|
|||||||
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!]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1112,7 +1096,6 @@ if %keyerror% EQU 0 if not defined _perm if defined _int (
|
|||||||
if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail (
|
if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail (
|
||||||
echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && (
|
echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && (
|
||||||
call :dk_color %Red% "Checking Internet Issues [Found] %error_code%"
|
call :dk_color %Red% "Checking Internet Issues [Found] %error_code%"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%licensing-servers-issue
|
set fixes=%fixes% %mas%licensing-servers-issue
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
||||||
echo:
|
echo:
|
||||||
@@ -1324,7 +1307,6 @@ echo %keyecho% %~1 [Successful]
|
|||||||
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -1466,7 +1448,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
@@ -1548,7 +1529,6 @@ if not "%results%%pupfound%"=="" (
|
|||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
||||||
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
@@ -1576,7 +1556,6 @@ call :dk_chkmal
|
|||||||
sc query Null %nul% || (
|
sc query Null %nul% || (
|
||||||
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1592,7 +1571,6 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot
|
|||||||
|
|
||||||
call :dk_color %Red% "Checking WinPE [Found]"
|
call :dk_color %Red% "Checking WinPE [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1607,7 +1585,6 @@ set showfix=1
|
|||||||
if defined safeboot_option (
|
if defined safeboot_option (
|
||||||
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1626,7 +1603,6 @@ if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" (
|
|||||||
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
||||||
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1635,7 +1611,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1721,7 +1696,6 @@ if not defined showfix (
|
|||||||
echo:
|
echo:
|
||||||
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
||||||
echo A registry fix has been applied to enable the disabled service.
|
echo A registry fix has been applied to enable the disabled service.
|
||||||
echo:
|
|
||||||
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 fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
@@ -1762,7 +1736,6 @@ if not defined showfix (
|
|||||||
set listwospp=%_serv:sppsvc=%
|
set listwospp=%_serv:sppsvc=%
|
||||||
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -1794,7 +1767,6 @@ if defined wmifailed (
|
|||||||
call :dk_color %Red% "Checking WMI [Not Working]"
|
call :dk_color %Red% "Checking WMI [Not Working]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1809,7 +1781,6 @@ set showfix=1
|
|||||||
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
||||||
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
||||||
echo:
|
echo:
|
||||||
@@ -1830,7 +1801,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
|
|||||||
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
||||||
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1861,7 +1831,6 @@ call :dk_color %Gray% "Checking SPP Token Folder [Not Found, Creat
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1906,7 +1875,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
|
|||||||
if defined permerror (
|
if defined permerror (
|
||||||
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1928,7 +1896,6 @@ if defined chkalp (
|
|||||||
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
set error=1
|
set error=1
|
||||||
@@ -1941,7 +1908,6 @@ set wpainfo=a
|
|||||||
if not defined chkalp (
|
if not defined chkalp (
|
||||||
if %wpainfo% GEQ 5000 (
|
if %wpainfo% GEQ 5000 (
|
||||||
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -1957,7 +1923,6 @@ echo Checking WPA Registry Count [%wpainfo%]
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
||||||
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1969,7 +1934,6 @@ set showfix=1
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
||||||
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1984,7 +1948,6 @@ set showfix=1
|
|||||||
if %error_code% NEQ 0 (
|
if %error_code% NEQ 0 (
|
||||||
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2014,7 +1977,6 @@ call :dk_color %Gray% "Checking Activation IDs [Key Not Installe
|
|||||||
if not defined apps if not defined allapps (
|
if not defined apps if not defined allapps (
|
||||||
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2024,7 +1986,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not defined showfix if defined rlicfailed (
|
if not defined showfix if defined rlicfailed (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2042,7 +2003,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
||||||
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
@@ -2060,7 +2020,6 @@ set showfix=1
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
||||||
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -2098,6 +2057,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed
|
|||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
||||||
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
||||||
|
if not defined showfix (
|
||||||
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
set error=1
|
||||||
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -2127,7 +2093,9 @@ call :dk_color %Gray% "Checking SLC/WMI SKU [Difference Found
|
|||||||
|
|
||||||
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
||||||
|
|
||||||
if exist "%SysPath%\wlms\wlms.exe" (
|
sc query wlms %nul%
|
||||||
|
|
||||||
|
if %errorlevel% NEQ 1060 (
|
||||||
echo Checking Eval WLMS Service [Found]
|
echo Checking Eval WLMS Service [Found]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -2142,7 +2110,6 @@ if defined _sppint (
|
|||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2177,7 +2144,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
|
|||||||
|
|
||||||
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -2345,6 +2311,7 @@ d4bdc678-0a4b-4a32-a5b3-aaa24c3b0f24_K9VKN-3BGWV-Y624W-MCRMQ-BH%f%DCD_202_X22-53
|
|||||||
92fb8726-92a8-4ffc-94ce-f82e07444653_KY7PN-VR6RX-83W6Y-6DDYQ-T6%f%R4W_203_X22-53847_0_____Retail_CloudEdition
|
92fb8726-92a8-4ffc-94ce-f82e07444653_KY7PN-VR6RX-83W6Y-6DDYQ-T6%f%R4W_203_X22-53847_0_____Retail_CloudEdition
|
||||||
5a85300a-bfce-474f-ac07-a30983e3fb90_N979K-XWD77-YW3GB-HBGH6-D3%f%2MH_205_X23-15042_0_____OEM:DM_IoTEnterpriseSK
|
5a85300a-bfce-474f-ac07-a30983e3fb90_N979K-XWD77-YW3GB-HBGH6-D3%f%2MH_205_X23-15042_0_____OEM:DM_IoTEnterpriseSK
|
||||||
80083eae-7031-4394-9e88-4901973d56fe_P8Q7T-WNK7X-PMFXY-VXHBG-RR%f%K69_206_X23-62084_0_____OEM:DM_IoTEnterpriseK
|
80083eae-7031-4394-9e88-4901973d56fe_P8Q7T-WNK7X-PMFXY-VXHBG-RR%f%K69_206_X23-62084_0_____OEM:DM_IoTEnterpriseK
|
||||||
|
1bc2140b-285b-4351-b99c-26a126104b29_TMP2N-KGFHJ-PWM6F-68KCQ-3P%f%JBP_210_X23-60513_0_____Retail_WNC
|
||||||
) do (
|
) do (
|
||||||
for /f "tokens=1-9 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-9 delims=_" %%A in ("%%#") do (
|
||||||
|
|
||||||
@@ -2557,7 +2524,6 @@ goto :oh_menu
|
|||||||
cls
|
cls
|
||||||
if not defined terminal (
|
if not defined terminal (
|
||||||
mode 140, 32
|
mode 140, 32
|
||||||
if exist "%SysPath%\spp\store_test\" mode 140, 32
|
|
||||||
%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=32;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
|
%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=32;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
|
||||||
)
|
)
|
||||||
title Ohook Activation %masver%
|
title Ohook Activation %masver%
|
||||||
@@ -2573,9 +2539,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -2674,11 +2639,9 @@ call :dk_color %Red% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
echo:
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
call :dk_color %Blue% "Download and install Office from the below URL and then try again."
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -2704,6 +2667,26 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
|
:: Check Smart App Control
|
||||||
|
|
||||||
|
set "sacstate="
|
||||||
|
if %winbuild% GEQ 22621 (
|
||||||
|
for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v VerifiedAndReputablePolicyState %nul6%') do set "sacstate=%%a"
|
||||||
|
)
|
||||||
|
if defined sacstate (
|
||||||
|
if "%sacstate%"=="0x1" (
|
||||||
|
call :dk_color %Gray% "Checking Smart App Control State [Enabled]"
|
||||||
|
call :dk_color %Blue% "Smart App Control may prevent you from opening Office after Ohook activation."
|
||||||
|
call :dk_color %Blue% "You will need to disable it from the Windows Defender settings if it does."
|
||||||
|
) else if "%sacstate%"=="0x2" (
|
||||||
|
call :dk_color %Gray% "Checking Smart App Control State [Evaluation]"
|
||||||
|
call :dk_color %Blue% "Smart App Control may prevent you from opening Office in the future if it enables itself after the evaluation period."
|
||||||
|
call :dk_color %Blue% "It is recommended that you disable it from the Windows Defender settings."
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: Process Office 15.0 C2R
|
:: Process Office 15.0 C2R
|
||||||
|
|
||||||
if not defined o15c2r goto :starto16c2r
|
if not defined o15c2r goto :starto16c2r
|
||||||
@@ -2830,7 +2813,7 @@ call :dk_color %Gray% "Checking Old Office With Sub License [Found. Update Of
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: mass()grave(dot)dev/office-license-is-not-genuine
|
:: mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
||||||
:: Script already is using MAK instead of GVLK so it won't appear anyway, but registry keys are added incase Office installs default GVLK grace key for volume products
|
:: Script already is using MAK instead of GVLK so it won't appear anyway, but registry keys are added incase Office installs default GVLK grace key for volume products
|
||||||
|
|
||||||
@@ -2873,7 +2856,6 @@ echo Help: %mas%troubleshoot
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Some errors were detected."
|
call :dk_color %Red% "Some errors were detected."
|
||||||
if not defined ierror if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined ierror if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
)
|
)
|
||||||
@@ -3615,10 +3597,10 @@ reg unload HKU\!defname! %nul%
|
|||||||
|
|
||||||
if defined vnextexist (
|
if defined vnextexist (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "Office vNext subscription detected:"
|
call :dk_color %Gray% "The logged-in Office account has a subscription license."
|
||||||
call :dk_color %Blue% "If active, this license overrides other activation methods."
|
call :dk_color %Blue% "If the subscription is active, it overrides other activation methods."
|
||||||
call :dk_color %Blue% "If expiring soon, rerun the script after expiration."
|
call :dk_color %Blue% "If it is expiring soon, rerun the activation script after it expires."
|
||||||
call :dk_color2 %Blue% "If expired and script activation fails, get help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "If it has already expired and activation fails, get help here - " %_Yellow% " %mas%troubleshoot"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -3719,7 +3701,6 @@ if %upk_result%==1 echo Uninstalling Other/Grace Keys [Successful]
|
|||||||
if %upk_result%==2 (
|
if %upk_result%==2 (
|
||||||
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -4155,13 +4136,13 @@ $MemoryStream.Close()
|
|||||||
::
|
::
|
||||||
:: The files are encoded in base64 to make AIO version.
|
:: The files are encoded in base64 to make AIO version.
|
||||||
::
|
::
|
||||||
:: mass()grave(dot)dev/ohook
|
:: mass{}grave{dot}dev/ohook
|
||||||
:: Here you can find the files source code and info on how to rebuild the identical sppc.dll files
|
:: Here you can find the files source code and info on how to rebuild the identical sppc.dll files
|
||||||
::
|
::
|
||||||
:: stackoverflow.com/a/35335273
|
:: stackoverflow.com/a/35335273
|
||||||
:: Here you can check how to extract sppc.dll files from base64
|
:: Here you can check how to extract sppc.dll files from base64
|
||||||
::
|
::
|
||||||
:: For any further question, feel free to contact us on mass()grave(dot)dev/contactus
|
:: For any further question, feel free to contact us on mass{}grave{dot}dev/contactus
|
||||||
::
|
::
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
::
|
::
|
||||||
@@ -4542,9 +4523,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -4556,7 +4536,6 @@ echo .NET 3.5 Framework is corrupt or missing. Aborting...
|
|||||||
if exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-Embedded" (
|
if exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-Embedded" (
|
||||||
echo Install .NET Framework 4.8 and Windows Management Framework 5.1
|
echo Install .NET Framework 4.8 and Windows Management Framework 5.1
|
||||||
)
|
)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -4570,7 +4549,6 @@ if !errorlevel! EQU 1051 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Evaluation WLMS service is running, %_slser% service can not be stopped. Aborting...
|
echo Evaluation WLMS service is running, %_slser% service can not be stopped. Aborting...
|
||||||
echo Install Non-Eval version for Windows build %winbuild%.
|
echo Install Non-Eval version for Windows build %winbuild%.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -5053,7 +5031,7 @@ set w10EsuEditions=Education-EducationN-Enterprise-EnterpriseN-Professional-Prof
|
|||||||
|
|
||||||
set minbuild=0
|
set minbuild=0
|
||||||
if /i %tsedition%==ServerRdsh set minbuild=5552
|
if /i %tsedition%==ServerRdsh set minbuild=5552
|
||||||
for %%# in (Core CoreN CoreCountrySpecific CoreSingleLanguage) do (if /i %tsedition%==%%# set minbuild=6156)
|
for %%# in (Core CoreN CoreCountrySpecific CoreSingleLanguage IoTEnterprise) do (if /i %tsedition%==%%# set minbuild=6156)
|
||||||
if /i %tsedition%==PPIPro set minbuild=6388
|
if /i %tsedition%==PPIPro set minbuild=6388
|
||||||
|
|
||||||
set /a UBR=0
|
set /a UBR=0
|
||||||
@@ -5082,10 +5060,9 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
|||||||
1043add5-23b1-4afb-9a0f-64343c8f3f8d_Client-ESU-Year2_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
1043add5-23b1-4afb-9a0f-64343c8f3f8d_Client-ESU-Year2_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
83d49986-add3-41d7-ba33-87c7bfb5c0fb_Client-ESU-Year3_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
83d49986-add3-41d7-ba33-87c7bfb5c0fb_Client-ESU-Year3_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
0b533b5e-08b6-44f9-b885-c2de291ba456_Client-ESU-Year6[4-6y]_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
0b533b5e-08b6-44f9-b885-c2de291ba456_Client-ESU-Year6[4-6y]_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
b8527af1-5389-447c-9a88-2d1691ea33d3_Client-IoT-ESU-Year1_-IoTEnterprise-
|
REM WindowsServer2016
|
||||||
7b76ee02-0a75-4f08-85d5-bd0feadad0c0_Client-IoT-ESU-Year2_-IoTEnterprise-
|
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||||
4dac5a0c-5709-4595-a32c-14a56a4a6b31_Client-IoT-ESU-Year3_-IoTEnterprise-
|
4cd0ab30-73a4-4dde-972c-512f05be31df_Server-ESU-Year6[4-6y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||||
f69e2d51-3bbd-4ddf-8da7-a145e9dca597_Client-IoT-ESU-Year6[4-6y]_-IoTEnterprise-
|
|
||||||
) do (
|
) do (
|
||||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||||
@@ -5141,7 +5118,7 @@ goto :ts_off
|
|||||||
set esuavail=
|
set esuavail=
|
||||||
if defined _vis if defined isServer set esuavail=1
|
if defined _vis if defined isServer set esuavail=1
|
||||||
if %winbuild% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
if %winbuild% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
||||||
if %winbuild% GTR 7602 if %winbuild% LSS 10240 if defined isServer set esuavail=1
|
if %winbuild% GTR 7602 if %winbuild% LSS 14393 if defined isServer set esuavail=1
|
||||||
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not defined isServer set esuavail=1
|
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not defined isServer set esuavail=1
|
||||||
if %winbuild% EQU 9600 set esuavail=1
|
if %winbuild% EQU 9600 set esuavail=1
|
||||||
|
|
||||||
@@ -5259,9 +5236,9 @@ call :dk_color %Gray% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
if %_actwin%==0 set fixes=%fixes% %mas%genuine-installation-media
|
if %_actwin%==0 set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto :ts_act
|
goto :ts_act
|
||||||
@@ -5411,7 +5388,7 @@ call :ts_process
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: mass()grave(dot)dev/office-license-is-not-genuine
|
:: mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
||||||
|
|
||||||
set "kmskey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
|
set "kmskey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
|
||||||
@@ -5890,22 +5867,26 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
|
|||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
) else (
|
) else (
|
||||||
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26200 (
|
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26100 (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
call :dk_color %Gray% "Windows Update gets 1-3 years of ESU; 4-6 are unofficial but let you install Server 2008 R2 updates manually."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | findstr /i "4afc620f-12a4-48ad-8015-2aebfbd6e47c 11be7019-a309-4763-9a09-091d1722ffe3" %nul1% && (
|
echo "%tsids%" | findstr /i "4afc620f-12a4-48ad-8015-2aebfbd6e47c 11be7019-a309-4763-9a09-091d1722ffe3" %nul1% && (
|
||||||
call :dk_color %Gray% "ESU is not officially supported on Windows 8.1, but you can manually install updates until Jan-2024."
|
call :dk_color %Gray% "ESU is not officially supported on Windows 8.1, but updates can be installed manually until January 2024."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | findstr /i "0b533b5e-08b6-44f9-b885-c2de291ba456 f69e2d51-3bbd-4ddf-8da7-a145e9dca597" %nul1% && (
|
echo "%tsids%" | findstr /i "83d49986-add3-41d7-ba33-87c7bfb5c0fb 0b533b5e-08b6-44f9-b885-c2de291ba456" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but it might be useful."
|
call :dk_color %Gray% "Windows Update gets 1-3 years of ESU; 4-6 are unofficial but may let you install LTSC updates manually."
|
||||||
|
if exist %SysPath%\ClipESUConsumer.exe (%SysPath%\ClipESUConsumer.exe -evaluateEligibility)
|
||||||
|
if exist %SysPath%\ClipESU.exe (%SysPath%\ClipESU.exe %nul%)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if defined esuexistsup echo Help: %mas%tsforge#windows-esu
|
||||||
|
|
||||||
if %_actwin%==1 for %%# in (407) do if %osSKU%==%%# (
|
if %_actwin%==1 for %%# in (407) do if %osSKU%==%%# (
|
||||||
call :dk_color %Red% "%winos% does not support activation on non-azure platforms."
|
call :dk_color %Red% "%winos% does not support activation on non-azure platforms."
|
||||||
)
|
)
|
||||||
@@ -11274,6 +11255,7 @@ namespace LibTSforge.PhysicalStore
|
|||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$binPath = "$env:_work\BIN\LibTSforge.dll"
|
$binPath = "$env:_work\BIN\LibTSforge.dll"
|
||||||
$psMajorVer = (Get-Host).Version.Major
|
$psMajorVer = (Get-Host).Version.Major
|
||||||
|
$build = [System.Environment]::OSVersion.Version.Build
|
||||||
|
|
||||||
if (Test-Path -LiteralPath $binPath) {
|
if (Test-Path -LiteralPath $binPath) {
|
||||||
Write-Host "LibTSforge.dll found in BIN folder. Loading the DLL..."
|
Write-Host "LibTSforge.dll found in BIN folder. Loading the DLL..."
|
||||||
@@ -11372,7 +11354,12 @@ if (-not $env:resetstuff) {
|
|||||||
}
|
}
|
||||||
if ($env:tsmethod -eq "KMS4k") {
|
if ($env:tsmethod -eq "KMS4k") {
|
||||||
$GracePeriodStatus = Get-WmiInfo -tsactid $tsactid -property "GracePeriodRemaining"
|
$GracePeriodStatus = Get-WmiInfo -tsactid $tsactid -property "GracePeriodRemaining"
|
||||||
if ($GracePeriodStatus -gt 259200) { $activated = 1 }
|
if ($GracePeriodStatus -eq 259200 -or ([datetime]::Now.AddMinutes($GracePeriodStatus)).Year -gt 2038) {
|
||||||
|
if ((($build -ge 26100 -and $GracePeriodStatus -ge 259200) -or
|
||||||
|
($build -lt 26100 -and $GracePeriodStatus -gt 259200))) {
|
||||||
|
$activated = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$licenseStatus = Get-WmiInfo -tsactid $tsactid -property "LicenseStatus"
|
$licenseStatus = Get-WmiInfo -tsactid $tsactid -property "LicenseStatus"
|
||||||
@@ -11386,8 +11373,14 @@ if (-not $env:resetstuff) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($env:tsmethod -eq "KMS4k") {
|
if ($env:tsmethod -eq "KMS4k") {
|
||||||
|
if ($build -ge 26100) {
|
||||||
|
Write-Host "[$prodName] is activated with KMS4k for over 4,000 years." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
|
Write-Host "From build 26100.7019, Windows will always display and stay at 180 days remaining if the actual period is longer." -ForegroundColor White -BackgroundColor Darkgray
|
||||||
|
}
|
||||||
|
else {
|
||||||
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[$prodName] is permanently activated with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
Write-Host "[$prodName] is permanently activated with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
}
|
}
|
||||||
@@ -12201,9 +12194,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -12483,9 +12475,9 @@ call :dk_color %Red% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto :ks_activate
|
goto :ks_activate
|
||||||
@@ -12697,7 +12689,7 @@ if %winbuild% GEQ 9200 (
|
|||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath /reg:32" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath /reg:32" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
||||||
if defined _C16R (
|
if defined _C16R (
|
||||||
REM mass()grave(dot)dev/office-license-is-not-genuine
|
REM mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
set _server=10.0.0.10
|
set _server=10.0.0.10
|
||||||
call :_taskregserv
|
call :_taskregserv
|
||||||
echo Keeping the non-existent IP address 10.0.0.10 as %KS% Server.
|
echo Keeping the non-existent IP address 10.0.0.10 as %KS% Server.
|
||||||
@@ -12964,7 +12956,6 @@ call :ks_clearstuff
|
|||||||
set error_=9
|
set error_=9
|
||||||
echo Failed to completely clear %KS% Cache.
|
echo Failed to completely clear %KS% Cache.
|
||||||
reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked.
|
reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
) || (
|
) || (
|
||||||
@@ -13042,8 +13033,7 @@ exit /b
|
|||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -13652,7 +13642,6 @@ echo:
|
|||||||
echo This Script is a part of MAS project.
|
echo This Script is a part of MAS project.
|
||||||
echo:
|
echo:
|
||||||
echo Homepage: mass%w%grave%w%.dev
|
echo Homepage: mass%w%grave%w%.dev
|
||||||
echo Email: mas.help@outlook.com
|
|
||||||
)>"%_dest%\Info.txt"
|
)>"%_dest%\Info.txt"
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
@@ -14446,9 +14435,6 @@ set notfoundaltactID=
|
|||||||
if %_NoEditionChange%==1 exit /b
|
if %_NoEditionChange%==1 exit /b
|
||||||
|
|
||||||
for %%# in (
|
for %%# in (
|
||||||
188_IoTEnterprise__________________8ab9bdd1-1f67-4997-82d9-8878520837d9_73111121-5638-40f6-bc11-f1d7b0d64300_NPPR9-FWDCX-D2C8J-H872K-2Y%f%T43_Enterprise
|
|
||||||
206_IoTEnterpriseK_________________80083eae-7031-4394-9e88-4901973d56fe_73111121-5638-40f6-bc11-f1d7b0d64300_NPPR9-FWDCX-D2C8J-H872K-2Y%f%T43_Enterprise
|
|
||||||
191_IoTEnterpriseS-2021____________ed655016-a9e8-4434-95d9-4345352c2552_32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee_M7XTQ-FN8P6-TTKYV-9D4CC-J4%f%62D_EnterpriseS-2021
|
|
||||||
205_IoTEnterpriseSK________________d4f9b41f-205c-405e-8e08-3d16e88e02be_59eb965c-9150-42b7-a0ec-22151b9897c5_KBN8V-HFGQ4-MGXVD-347P6-PD%f%QGT_IoTEnterpriseS
|
205_IoTEnterpriseSK________________d4f9b41f-205c-405e-8e08-3d16e88e02be_59eb965c-9150-42b7-a0ec-22151b9897c5_KBN8V-HFGQ4-MGXVD-347P6-PD%f%QGT_IoTEnterpriseS
|
||||||
138_ProfessionalSingleLanguage_____a48938aa-62fa-4966-9d44-9f04da3f72f2_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
138_ProfessionalSingleLanguage_____a48938aa-62fa-4966-9d44-9f04da3f72f2_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
||||||
139_ProfessionalCountrySpecific____f7af7d09-40e4-419c-a49b-eae366689ebd_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
139_ProfessionalCountrySpecific____f7af7d09-40e4-419c-a49b-eae366689ebd_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
||||||
@@ -14952,6 +14938,7 @@ function DetectSubscription {
|
|||||||
function DetectAdbaClient
|
function DetectAdbaClient
|
||||||
{
|
{
|
||||||
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
|
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
|
||||||
|
DetectActType
|
||||||
CONOUT "`nAD Activation client information:"
|
CONOUT "`nAD Activation client information:"
|
||||||
CONOUT " Object Name: $ADActivationObjectName"
|
CONOUT " Object Name: $ADActivationObjectName"
|
||||||
CONOUT " Domain Name: $ADActivationObjectDN"
|
CONOUT " Domain Name: $ADActivationObjectDN"
|
||||||
@@ -15042,17 +15029,18 @@ function DetectKmsHost
|
|||||||
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
|
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
|
||||||
}
|
}
|
||||||
|
|
||||||
function DetectKmsClient
|
function DetectActType
|
||||||
{
|
{
|
||||||
if ($win8)
|
|
||||||
{
|
|
||||||
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
|
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
|
||||||
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
|
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
|
||||||
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
|
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
|
||||||
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
|
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
|
||||||
}
|
|
||||||
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
|
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
|
||||||
|
}
|
||||||
|
|
||||||
|
function DetectKmsClient
|
||||||
|
{
|
||||||
|
if ($win8) {DetectActType}
|
||||||
CONOUT "`r"
|
CONOUT "`r"
|
||||||
if ($LicenseStatus -NE 1) {
|
if ($LicenseStatus -NE 1) {
|
||||||
CONOUT "Please activate the product in order to update KMS client information values."
|
CONOUT "Please activate the product in order to update KMS client information values."
|
||||||
@@ -15300,6 +15288,7 @@ function GetResult($strSLP, $strApp, $entry)
|
|||||||
|
|
||||||
if ($win8 -And $VLActivationType -EQ 1) {
|
if ($win8 -And $VLActivationType -EQ 1) {
|
||||||
DetectAdbaClient
|
DetectAdbaClient
|
||||||
|
$cKmsClient = $null
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($winID -And $null -NE $cAvmClient) {
|
if ($winID -And $null -NE $cAvmClient) {
|
||||||
@@ -16245,7 +16234,7 @@ call :dk_color %Blue% "Rebuilding ClipSVC Licenses..."
|
|||||||
echo:
|
echo:
|
||||||
|
|
||||||
if %winbuild% LSS 10240 (
|
if %winbuild% LSS 10240 (
|
||||||
echo ClipSVC license rebuilding is supported only on Windows 10/11 and their Server equivalents.
|
echo ClipSVC license rebuilding is supported only on Windows 10/11.
|
||||||
echo Skipping...
|
echo Skipping...
|
||||||
goto :rebuildspptok
|
goto :rebuildspptok
|
||||||
)
|
)
|
||||||
@@ -16256,6 +16245,40 @@ echo Skipping...
|
|||||||
goto :rebuildspptok
|
goto :rebuildspptok
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set _partial=
|
||||||
|
set _keymatch=
|
||||||
|
for /f "tokens=2 delims==" %%# in ('%psc% "(([WMISEARCHER]'SELECT PartialProductKey FROM SoftwareLicensingProduct WHERE ApplicationID=''55c92734-d682-4d71-983e-d6ec3f16059f'' AND PartialProductKey IS NOT NULL AND LicenseDependsOn is NULL').Get()).PartialProductKey | %% {echo ('PartialProductKey='+$_)}" %nul6%') do set "_partial=%%#"
|
||||||
|
for %%# in (8HV2C QPFCT 3V66T PKCKT WXCHW 8TYMD 6F4BT 8HVX7 KD72Y 7CFBY DRR8H P39PB DYJWX MDWWW 9HKR4 M7V2X 2YV77 WT2RQ MHBPB QPF8P 2YV66 VMJ2C DJ4F6 CKFFD YY74H J8JXD BHDCD T6R4W D32MH RRK69 3PJBP) do if /i "%_partial%"=="%%#" set _keymatch=1
|
||||||
|
|
||||||
|
if not defined _keymatch (
|
||||||
|
echo HWID activation key is not installed.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
|
%psc% "If([Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]'{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')).IsConnectedToInternet){Exit 0}Else{Exit 1}"
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo Internet is not connected.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
|
set resfail=
|
||||||
|
for %%# in (
|
||||||
|
licensing.mp.microsoft.com/v7.0/licenses/content
|
||||||
|
login.live.com/ppsecure/deviceaddcredential.srf
|
||||||
|
purchase.mp.microsoft.com/v7.0/users/me/orders
|
||||||
|
) do if not defined resfail (
|
||||||
|
%psc% "try { [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black; exit 3 } }"
|
||||||
|
if !errorlevel!==3 set resfail=1
|
||||||
|
)
|
||||||
|
|
||||||
|
if defined resfail (
|
||||||
|
echo Failed to connect to licensing servers.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
echo Stopping ClipSVC service...
|
echo Stopping ClipSVC service...
|
||||||
%psc% Stop-Service ClipSVC -force %nul%
|
%psc% Stop-Service ClipSVC -force %nul%
|
||||||
timeout /t 2 %nul%
|
timeout /t 2 %nul%
|
||||||
@@ -16571,8 +16594,8 @@ for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\16.0\Common\InstallRoot /v P
|
|||||||
|
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_86=Office 15.0 C2R x86" & call :getc2rrepair c2r15repair86 integratedoffice.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_86=Office 15.0 C2R x86" & call :getc2rrepair c2r15repair86 integratedoffice.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_68=Office 15.0 C2R x86/x64" & call :getc2rrepair c2r15repair68 integratedoffice.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_68=Office 15.0 C2R x86/x64" & call :getc2rrepair c2r15repair68 integratedoffice.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_86=Office 16.0 C2R x86" & call :getc2rrepair c2r16repair86 OfficeClickToRun.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_86=Office 16.0 C2R x86" & call :getc2r16repair c2r16repair86 OfficeClickToRun.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_68=Office 16.0 C2R x86/x64" & call :getc2rrepair c2r16repair68 OfficeClickToRun.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_68=Office 16.0 C2R x86/x64" & call :getc2r16repair c2r16repair68 OfficeClickToRun.exe)
|
||||||
|
|
||||||
set uwp16=
|
set uwp16=
|
||||||
if %winbuild% GEQ 10240 (
|
if %winbuild% GEQ 10240 (
|
||||||
@@ -16614,13 +16637,11 @@ echo ________________________________________________________________
|
|||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
if %counter% EQU 0 (
|
|
||||||
echo:
|
echo:
|
||||||
|
if %counter% EQU 0 (
|
||||||
echo Office ^(2010 and later^) is not installed.
|
echo Office ^(2010 and later^) is not installed.
|
||||||
goto :repairend
|
goto :repairend
|
||||||
echo:
|
) else if not defined c2r16_68 if not defined c2r16_86 (
|
||||||
) else (
|
|
||||||
echo:
|
|
||||||
call :dk_color %_Yellow% "A new window will appear, in that window you need to select [Quick Repair] option."
|
call :dk_color %_Yellow% "A new window will appear, in that window you need to select [Quick Repair] option."
|
||||||
if defined terminal (
|
if defined terminal (
|
||||||
call :dk_color %_Yellow% "Press [0] to continue..."
|
call :dk_color %_Yellow% "Press [0] to continue..."
|
||||||
@@ -16655,8 +16676,8 @@ if defined msi16_68 if exist "%msi16repair68%" echo Running - "%msi16repair68%"
|
|||||||
if defined msi16_86 if exist "%msi16repair86%" echo Running - "%msi16repair86%" & "%msi16repair86%"
|
if defined msi16_86 if exist "%msi16repair86%" echo Running - "%msi16repair86%" & "%msi16repair86%"
|
||||||
if defined c2r15_68 if exist "%c2r15repair68%" echo Running - "%c2r15repair68%" REPAIRUI RERUNMODE & "%c2r15repair68%" REPAIRUI RERUNMODE
|
if defined c2r15_68 if exist "%c2r15repair68%" echo Running - "%c2r15repair68%" REPAIRUI RERUNMODE & "%c2r15repair68%" REPAIRUI RERUNMODE
|
||||||
if defined c2r15_86 if exist "%c2r15repair86%" echo Running - "%c2r15repair86%" REPAIRUI RERUNMODE & "%c2r15repair86%" REPAIRUI RERUNMODE
|
if defined c2r15_86 if exist "%c2r15repair86%" echo Running - "%c2r15repair86%" REPAIRUI RERUNMODE & "%c2r15repair86%" REPAIRUI RERUNMODE
|
||||||
if defined c2r16_68 if exist "%c2r16repair68%" echo Running - "%c2r16repair68%" scenario=Repair & "%c2r16repair68%" scenario=Repair
|
if defined c2r16_68 if exist "%c2r16repair68%" echo Running - "%c2r16repair68%" Scenario=Repair RepairType=QuickRepair & "%c2r16repair68%" Scenario=Repair RepairType=QuickRepair
|
||||||
if defined c2r16_86 if exist "%c2r16repair86%" echo Running - "%c2r16repair86%" scenario=Repair & "%c2r16repair86%" scenario=Repair
|
if defined c2r16_86 if exist "%c2r16repair86%" echo Running - "%c2r16repair86%" Scenario=Repair RepairType=QuickRepair & "%c2r16repair86%" Scenario=Repair RepairType=QuickRepair
|
||||||
|
|
||||||
:repairend
|
:repairend
|
||||||
|
|
||||||
@@ -16676,6 +16697,13 @@ set "%1=%systemdrive%\Program Files\Microsoft Office 15\Client%%#\%2"
|
|||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
|
:getc2r16repair
|
||||||
|
|
||||||
|
for %%# in (%_68% %_86%) do (
|
||||||
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %%#\ClickToRun\Configuration /v ClientFolder" %nul6%') do if exist "%%b\%2" (set "%1=%%b\%2")
|
||||||
|
)
|
||||||
|
exit /b
|
||||||
|
|
||||||
:getrepairsetup
|
:getrepairsetup
|
||||||
|
|
||||||
set "_common86=%systemdrive%\Program Files (x86)\Common Files\Microsoft Shared\OFFICE%2\Office Setup Controller\setup.exe"
|
set "_common86=%systemdrive%\Program Files (x86)\Common Files\Microsoft Shared\OFFICE%2\Office Setup Controller\setup.exe"
|
||||||
@@ -16753,7 +16781,6 @@ sc query Winmgmt | find /i "STOPPED" %nul% && (
|
|||||||
echo [Successful]
|
echo [Successful]
|
||||||
) || (
|
) || (
|
||||||
call :dk_color %Red% "[Failed]"
|
call :dk_color %Red% "[Failed]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Its recommended to select [Restart] option and then apply Fix WMI option again."
|
call :dk_color %Blue% "Its recommended to select [Restart] option and then apply Fix WMI option again."
|
||||||
echo %line%
|
echo %line%
|
||||||
echo:
|
echo:
|
||||||
@@ -17175,12 +17202,10 @@ dism.exe
|
|||||||
if not exist %SysPath%\%%# (
|
if not exist %SysPath%\%%# (
|
||||||
%eline%
|
%eline%
|
||||||
echo [%SysPath%\%%#] file is missing, aborting...
|
echo [%SysPath%\%%#] file is missing, aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -17211,7 +17236,6 @@ call :dk_actids 55c92734-d682-4d71-983e-d6ec3f16059f
|
|||||||
if not defined allapps (
|
if not defined allapps (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to find activation IDs. Aborting...
|
echo Failed to find activation IDs. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -17233,7 +17257,6 @@ if not defined osedition %chkedi% do if not errorlevel 1 (call set "osedition=%%
|
|||||||
if not defined osedition (
|
if not defined osedition (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to detect OS edition, aborting...
|
echo Failed to detect OS edition, aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -17383,7 +17406,7 @@ set _dismapi=1
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
set "keyflow=Retail Volume:GVLK Volume:MAK OEM:NONSLP OEM:DM PGS:TB Retail:TB:Eval"
|
set "keyflow=Retail OEM:NONSLP OEM:DM Volume:MAK Volume:GVLK PGS:TB Retail:TB:Eval"
|
||||||
|
|
||||||
call :ced_targetSKU %targetedition%
|
call :ced_targetSKU %targetedition%
|
||||||
if defined targetSKU call :ced_windowskey
|
if defined targetSKU call :ced_windowskey
|
||||||
@@ -17398,7 +17421,6 @@ if not defined key (
|
|||||||
%eline%
|
%eline%
|
||||||
echo [%targetedition% ^| %winbuild%]
|
echo [%targetedition% ^| %winbuild%]
|
||||||
echo Failed to get product key from pkeyhelper.dll.
|
echo Failed to get product key from pkeyhelper.dll.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -17453,7 +17475,6 @@ echo:
|
|||||||
call :dk_color %Gray% "Reboot is required to fully change the edition."
|
call :dk_color %Gray% "Reboot is required to fully change the edition."
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "[Unsuccessful] [Error Code: !keyerror!]"
|
call :dk_color %Red% "[Unsuccessful] [Error Code: !keyerror!]"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
)
|
)
|
||||||
@@ -17534,7 +17555,6 @@ if not defined key (
|
|||||||
%eline%
|
%eline%
|
||||||
echo [%targetedition% ^| %winbuild%]
|
echo [%targetedition% ^| %winbuild%]
|
||||||
echo Failed to get product key from pkeyhelper.dll.
|
echo Failed to get product key from pkeyhelper.dll.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -18069,7 +18089,6 @@ if %_wmic% EQU 0 set "chkedi=for /f "tokens=2 delims==" %%a in ('%psc% "(([WMISE
|
|||||||
if %osedition%==0 (
|
if %osedition%==0 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to detect OS Edition. Aborting...
|
echo Failed to detect OS Edition. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -18089,7 +18108,6 @@ if not defined o16c2r_reg (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Office C2R 2016 or later is not installed, which is required for this script.
|
echo Office C2R 2016 or later is not installed, which is required for this script.
|
||||||
echo Download and install Office from below URL and try again.
|
echo Download and install Office from below URL and try again.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -18106,7 +18124,6 @@ if %verchk% LSS 9029 (
|
|||||||
echo Installed Office version is %_version%.
|
echo Installed Office version is %_version%.
|
||||||
echo Minimum required version is 16.0.9029.2167
|
echo Minimum required version is 16.0.9029.2167
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Download and install latest Office from below URL and try again."
|
call :dk_color %Blue% "Download and install latest Office from below URL and try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -18129,7 +18146,6 @@ _masterxml
|
|||||||
if not defined %%A (
|
if not defined %%A (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to find %%A. Aborting...
|
echo Failed to find %%A. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -18142,7 +18158,6 @@ if %winbuild% LSS 10240 if defined ltscfound (
|
|||||||
echo Installed Office appears to be from the Volume channel %ltsc19%%ltsc21%%ltsc24%,
|
echo Installed Office appears to be from the Volume channel %ltsc19%%ltsc21%%ltsc24%,
|
||||||
echo which is not officially supported on your Windows build version %winbuild%.
|
echo which is not officially supported on your Windows build version %winbuild%.
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -18156,7 +18171,6 @@ if defined unsupbuild (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Unsupported Office %verchk% is installed on your Windows build version %winbuild%.
|
echo Unsupported Office %verchk% is installed on your Windows build version %winbuild%.
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -18263,7 +18277,6 @@ mode 98, 45
|
|||||||
if not exist %SystemRoot%\Temp\%list%.txt (
|
if not exist %SystemRoot%\Temp\%list%.txt (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to generate available editions list.
|
echo Failed to generate available editions list.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -18328,7 +18341,6 @@ set suites=1
|
|||||||
if not exist %SystemRoot%\Temp\getAppIds.txt (
|
if not exist %SystemRoot%\Temp\getAppIds.txt (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to generate available apps list.
|
echo Failed to generate available apps list.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -18481,7 +18493,6 @@ if /i "%_lang%"=="%%#" set langmatched=1
|
|||||||
if not defined langmatched (
|
if not defined langmatched (
|
||||||
%eline%
|
%eline%
|
||||||
echo %_lang% language is not available for Project/Visio apps.
|
echo %_lang% language is not available for Project/Visio apps.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Install Office in the supported language for Project/Visio from the below URL."
|
call :dk_color %Blue% "Install Office in the supported language for Project/Visio from the below URL."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -18742,12 +18753,11 @@ call :dk_color %Gray% "Installed Office editions: %_oIds%"
|
|||||||
echo:
|
echo:
|
||||||
|
|
||||||
for %%# in (
|
for %%# in (
|
||||||
"5440fd1f-7ecb-4221-8110-145efaa6372f_Insider Fast [Beta] - Insiders::DevMain -"
|
"5440fd1f-7ecb-4221-8110-145efaa6372f_Beta / Insider Fast - Insiders::DevMain -"
|
||||||
"64256afe-f5d9-4f86-8936-8840a6a4f5be_Monthly Preview - Insiders::CC -"
|
"64256afe-f5d9-4f86-8936-8840a6a4f5be_Current / Monthly Preview - Insiders::CC -"
|
||||||
"492350f6-3a01-4f97-b9c0-c7c6ddf67d60_Monthly [Current] - Production::CC -"
|
"492350f6-3a01-4f97-b9c0-c7c6ddf67d60_Current / Monthly - Production::CC -"
|
||||||
"55336b82-a18d-4dd6-b5f6-9e5095c314a6_Monthly Enterprise - Production::MEC -"
|
"55336b82-a18d-4dd6-b5f6-9e5095c314a6_Monthly Enterprise - Production::MEC -"
|
||||||
"b8f9b850-328d-4355-9145-c59439a0c4cf_Semi Annual Preview - Insiders::FRDC -"
|
"7ffbc6bf-bc32-4f92-8982-f9dd17fd3114_Semi Annual Enterprise - Production::DC -"
|
||||||
"7ffbc6bf-bc32-4f92-8982-f9dd17fd3114_Semi Annual - Production::DC -"
|
|
||||||
"ea4a4090-de26-49d7-93c1-91bff9e53fc3_DevMain Channel - Dogfood::DevMain -"
|
"ea4a4090-de26-49d7-93c1-91bff9e53fc3_DevMain Channel - Dogfood::DevMain -"
|
||||||
"b61285dd-d9f7-41f2-9757-8f61cba4e9c8_Microsoft Elite - Microsoft::DevMain -"
|
"b61285dd-d9f7-41f2-9757-8f61cba4e9c8_Microsoft Elite - Microsoft::DevMain -"
|
||||||
"f2e724c1-748f-4b47-8fb8-8e0d210e9208_Perpetual2019 VL - Production::LTSC -"
|
"f2e724c1-748f-4b47-8fb8-8e0d210e9208_Perpetual2019 VL - Production::LTSC -"
|
||||||
@@ -18849,7 +18859,6 @@ goto :oe_goback
|
|||||||
if not defined build (
|
if not defined build (
|
||||||
%eline%
|
%eline%
|
||||||
call :dk_color %Red% "Failed to detect build number for the target FFN."
|
call :dk_color %Red% "Failed to detect build number for the target FFN."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -18887,7 +18896,6 @@ for /l %%i in (1,1,30) do (if !clverchk! LSS %buildchk% (call :ch_getinfo&timeou
|
|||||||
if %clverchk% LSS %buildchk% (
|
if %clverchk% LSS %buildchk% (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Red% "Failed to update Office C2R client. Aborting..."
|
call :dk_color %Red% "Failed to update Office C2R client. Aborting..."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -100,9 +99,9 @@ set "nul="
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -188,7 +187,6 @@ if %winbuild% LSS 10240 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Unsupported OS version detected [%winbuild%].
|
echo Unsupported OS version detected [%winbuild%].
|
||||||
echo HWID Activation is only supported on Windows 10/11.
|
echo HWID Activation is only supported on Windows 10/11.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Use TSforge activation option from the main menu."
|
call :dk_color %Blue% "Use TSforge activation option from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -262,7 +260,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -272,7 +269,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -283,7 +279,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -295,7 +290,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -316,7 +310,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -427,9 +420,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -474,7 +466,6 @@ echo [%winos% ^| %winbuild%]
|
|||||||
echo:
|
echo:
|
||||||
echo Evaluation editions cannot be activated outside of their evaluation period.
|
echo Evaluation editions cannot be activated outside of their evaluation period.
|
||||||
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
|
call :dk_color %Blue% "Use TSforge activation option from the main menu to reset evaluation period."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -675,7 +666,6 @@ call :dk_color %Red% "Checking Ticket Migration [Failed]"
|
|||||||
|
|
||||||
if not defined altapplist if not defined showfix if defined rebuildinfo (
|
if not defined altapplist if not defined showfix if defined rebuildinfo (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -747,7 +737,6 @@ licensing.mp.microsoft.com
|
|||||||
findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]"
|
findstr /i "%%#" "%SysPath%\drivers\etc\hosts" %nul1% && set "hosfail= [%%# Blocked in Hosts]"
|
||||||
)
|
)
|
||||||
call :dk_color %Red% "Checking Licensing Servers [Failed to Connect]!hosfail!"
|
call :dk_color %Red% "Checking Licensing Servers [Failed to Connect]!hosfail!"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%licensing-servers-issue
|
set fixes=%fixes% %mas%licensing-servers-issue
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
||||||
echo:
|
echo:
|
||||||
@@ -763,7 +752,6 @@ reg query "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DisableWin
|
|||||||
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 (
|
if defined wublock (
|
||||||
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
call :dk_color %Red% "Checking Update Blocker In Registry [Found]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -771,7 +759,6 @@ echo:
|
|||||||
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]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
call :dk_color %Blue% "If you have used any tool to block Store, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -790,12 +777,10 @@ set error=1
|
|||||||
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
call :dk_color %Red% "Checking Windows Update Registry [Corruption Found]"
|
||||||
if !wcount! GTR 2 (
|
if !wcount! GTR 2 (
|
||||||
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
call :dk_color %Red% "Windows seems to be infected with Mal%w%ware."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
) else (
|
) else (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -806,7 +791,6 @@ set error=1
|
|||||||
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!]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
call :dk_color %Blue% "HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -821,7 +805,6 @@ if %keyerror% EQU 0 if not defined _perm if defined _int (
|
|||||||
if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail (
|
if not defined wucorrupt if not defined wublock if not defined wuerror if not defined storeblock if not defined resfail (
|
||||||
echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && (
|
echo "%error_code%" | findstr /i "0x80072e 0x80072f 0x800704cf 0x87e10bcf 0x800705b4" %nul% && (
|
||||||
call :dk_color %Red% "Checking Internet Issues [Found] %error_code%"
|
call :dk_color %Red% "Checking Internet Issues [Found] %error_code%"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%licensing-servers-issue
|
set fixes=%fixes% %mas%licensing-servers-issue
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%licensing-servers-issue"
|
||||||
echo:
|
echo:
|
||||||
@@ -1033,7 +1016,6 @@ echo %keyecho% %~1 [Successful]
|
|||||||
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -1159,7 +1141,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
@@ -1241,7 +1222,6 @@ if not "%results%%pupfound%"=="" (
|
|||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
||||||
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
@@ -1269,7 +1249,6 @@ call :dk_chkmal
|
|||||||
sc query Null %nul% || (
|
sc query Null %nul% || (
|
||||||
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1285,7 +1264,6 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot
|
|||||||
|
|
||||||
call :dk_color %Red% "Checking WinPE [Found]"
|
call :dk_color %Red% "Checking WinPE [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1300,7 +1278,6 @@ set showfix=1
|
|||||||
if defined safeboot_option (
|
if defined safeboot_option (
|
||||||
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1319,7 +1296,6 @@ if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" (
|
|||||||
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
||||||
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1328,7 +1304,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1414,7 +1389,6 @@ if not defined showfix (
|
|||||||
echo:
|
echo:
|
||||||
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
||||||
echo A registry fix has been applied to enable the disabled service.
|
echo A registry fix has been applied to enable the disabled service.
|
||||||
echo:
|
|
||||||
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 fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
@@ -1455,7 +1429,6 @@ if not defined showfix (
|
|||||||
set listwospp=%_serv:sppsvc=%
|
set listwospp=%_serv:sppsvc=%
|
||||||
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -1487,7 +1460,6 @@ if defined wmifailed (
|
|||||||
call :dk_color %Red% "Checking WMI [Not Working]"
|
call :dk_color %Red% "Checking WMI [Not Working]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1502,7 +1474,6 @@ set showfix=1
|
|||||||
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
||||||
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
||||||
echo:
|
echo:
|
||||||
@@ -1523,7 +1494,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
|
|||||||
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
||||||
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1554,7 +1524,6 @@ call :dk_color %Gray% "Checking SPP Token Folder [Not Found, Creat
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1599,7 +1568,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
|
|||||||
if defined permerror (
|
if defined permerror (
|
||||||
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1621,7 +1589,6 @@ if defined chkalp (
|
|||||||
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
set error=1
|
set error=1
|
||||||
@@ -1634,7 +1601,6 @@ set wpainfo=a
|
|||||||
if not defined chkalp (
|
if not defined chkalp (
|
||||||
if %wpainfo% GEQ 5000 (
|
if %wpainfo% GEQ 5000 (
|
||||||
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -1650,7 +1616,6 @@ echo Checking WPA Registry Count [%wpainfo%]
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
||||||
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1662,7 +1627,6 @@ set showfix=1
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
||||||
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1677,7 +1641,6 @@ set showfix=1
|
|||||||
if %error_code% NEQ 0 (
|
if %error_code% NEQ 0 (
|
||||||
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -1707,7 +1670,6 @@ call :dk_color %Gray% "Checking Activation IDs [Key Not Installe
|
|||||||
if not defined apps if not defined allapps (
|
if not defined apps if not defined allapps (
|
||||||
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -1717,7 +1679,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not defined showfix if defined rlicfailed (
|
if not defined showfix if defined rlicfailed (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -1735,7 +1696,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
||||||
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
@@ -1753,7 +1713,6 @@ set showfix=1
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
||||||
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -1791,6 +1750,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed
|
|||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
||||||
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
||||||
|
if not defined showfix (
|
||||||
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
set error=1
|
||||||
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -1820,7 +1786,9 @@ call :dk_color %Gray% "Checking SLC/WMI SKU [Difference Found
|
|||||||
|
|
||||||
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
||||||
|
|
||||||
if exist "%SysPath%\wlms\wlms.exe" (
|
sc query wlms %nul%
|
||||||
|
|
||||||
|
if %errorlevel% NEQ 1060 (
|
||||||
echo Checking Eval WLMS Service [Found]
|
echo Checking Eval WLMS Service [Found]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1835,7 +1803,6 @@ if defined _sppint (
|
|||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1870,7 +1837,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
|
|||||||
|
|
||||||
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -2038,6 +2004,7 @@ d4bdc678-0a4b-4a32-a5b3-aaa24c3b0f24_K9VKN-3BGWV-Y624W-MCRMQ-BH%f%DCD_202_X22-53
|
|||||||
92fb8726-92a8-4ffc-94ce-f82e07444653_KY7PN-VR6RX-83W6Y-6DDYQ-T6%f%R4W_203_X22-53847_0_____Retail_CloudEdition
|
92fb8726-92a8-4ffc-94ce-f82e07444653_KY7PN-VR6RX-83W6Y-6DDYQ-T6%f%R4W_203_X22-53847_0_____Retail_CloudEdition
|
||||||
5a85300a-bfce-474f-ac07-a30983e3fb90_N979K-XWD77-YW3GB-HBGH6-D3%f%2MH_205_X23-15042_0_____OEM:DM_IoTEnterpriseSK
|
5a85300a-bfce-474f-ac07-a30983e3fb90_N979K-XWD77-YW3GB-HBGH6-D3%f%2MH_205_X23-15042_0_____OEM:DM_IoTEnterpriseSK
|
||||||
80083eae-7031-4394-9e88-4901973d56fe_P8Q7T-WNK7X-PMFXY-VXHBG-RR%f%K69_206_X23-62084_0_____OEM:DM_IoTEnterpriseK
|
80083eae-7031-4394-9e88-4901973d56fe_P8Q7T-WNK7X-PMFXY-VXHBG-RR%f%K69_206_X23-62084_0_____OEM:DM_IoTEnterpriseK
|
||||||
|
1bc2140b-285b-4351-b99c-26a126104b29_TMP2N-KGFHJ-PWM6F-68KCQ-3P%f%JBP_210_X23-60513_0_____Retail_WNC
|
||||||
) do (
|
) do (
|
||||||
for /f "tokens=1-9 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-9 delims=_" %%A in ("%%#") do (
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -100,9 +99,9 @@ set "nul="
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -270,7 +269,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -280,7 +278,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -291,7 +288,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -303,7 +299,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -324,7 +319,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -457,7 +451,6 @@ goto :oh_menu
|
|||||||
cls
|
cls
|
||||||
if not defined terminal (
|
if not defined terminal (
|
||||||
mode 140, 32
|
mode 140, 32
|
||||||
if exist "%SysPath%\spp\store_test\" mode 140, 32
|
|
||||||
%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=32;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
|
%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=32;$B.Height=300;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
|
||||||
)
|
)
|
||||||
title Ohook Activation %masver%
|
title Ohook Activation %masver%
|
||||||
@@ -473,9 +466,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -572,11 +564,9 @@ call :dk_color %Red% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
echo:
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
call :dk_color %Blue% "Download and install Office from the below URL and then try again."
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -602,6 +592,26 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
|
:: Check Smart App Control
|
||||||
|
|
||||||
|
set "sacstate="
|
||||||
|
if %winbuild% GEQ 22621 (
|
||||||
|
for /f "tokens=3" %%a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\CI\Policy" /v VerifiedAndReputablePolicyState %nul6%') do set "sacstate=%%a"
|
||||||
|
)
|
||||||
|
if defined sacstate (
|
||||||
|
if "%sacstate%"=="0x1" (
|
||||||
|
call :dk_color %Gray% "Checking Smart App Control State [Enabled]"
|
||||||
|
call :dk_color %Blue% "Smart App Control may prevent you from opening Office after Ohook activation."
|
||||||
|
call :dk_color %Blue% "You will need to disable it from the Windows Defender settings if it does."
|
||||||
|
) else if "%sacstate%"=="0x2" (
|
||||||
|
call :dk_color %Gray% "Checking Smart App Control State [Evaluation]"
|
||||||
|
call :dk_color %Blue% "Smart App Control may prevent you from opening Office in the future if it enables itself after the evaluation period."
|
||||||
|
call :dk_color %Blue% "It is recommended that you disable it from the Windows Defender settings."
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: Process Office 15.0 C2R
|
:: Process Office 15.0 C2R
|
||||||
|
|
||||||
if not defined o15c2r goto :starto16c2r
|
if not defined o15c2r goto :starto16c2r
|
||||||
@@ -728,7 +738,7 @@ call :dk_color %Gray% "Checking Old Office With Sub License [Found. Update Of
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: mass()grave(dot)dev/office-license-is-not-genuine
|
:: mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
||||||
:: Script already is using MAK instead of GVLK so it won't appear anyway, but registry keys are added incase Office installs default GVLK grace key for volume products
|
:: Script already is using MAK instead of GVLK so it won't appear anyway, but registry keys are added incase Office installs default GVLK grace key for volume products
|
||||||
|
|
||||||
@@ -771,7 +781,6 @@ echo Help: %mas%troubleshoot
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Some errors were detected."
|
call :dk_color %Red% "Some errors were detected."
|
||||||
if not defined ierror if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
if not defined ierror if not defined showfix call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
)
|
)
|
||||||
@@ -1513,10 +1522,10 @@ reg unload HKU\!defname! %nul%
|
|||||||
|
|
||||||
if defined vnextexist (
|
if defined vnextexist (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "Office vNext subscription detected:"
|
call :dk_color %Gray% "The logged-in Office account has a subscription license."
|
||||||
call :dk_color %Blue% "If active, this license overrides other activation methods."
|
call :dk_color %Blue% "If the subscription is active, it overrides other activation methods."
|
||||||
call :dk_color %Blue% "If expiring soon, rerun the script after expiration."
|
call :dk_color %Blue% "If it is expiring soon, rerun the activation script after it expires."
|
||||||
call :dk_color2 %Blue% "If expired and script activation fails, get help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "If it has already expired and activation fails, get help here - " %_Yellow% " %mas%troubleshoot"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1617,7 +1626,6 @@ if %upk_result%==1 echo Uninstalling Other/Grace Keys [Successful]
|
|||||||
if %upk_result%==2 (
|
if %upk_result%==2 (
|
||||||
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -1766,7 +1774,6 @@ echo %keyecho% %~1 [Successful]
|
|||||||
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -1860,7 +1867,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
@@ -1927,7 +1933,6 @@ if not "%results%%pupfound%"=="" (
|
|||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
||||||
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
@@ -1955,7 +1960,6 @@ call :dk_chkmal
|
|||||||
sc query Null %nul% || (
|
sc query Null %nul% || (
|
||||||
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1971,7 +1975,6 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot
|
|||||||
|
|
||||||
call :dk_color %Red% "Checking WinPE [Found]"
|
call :dk_color %Red% "Checking WinPE [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -1986,7 +1989,6 @@ set showfix=1
|
|||||||
if defined safeboot_option (
|
if defined safeboot_option (
|
||||||
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2005,7 +2007,6 @@ if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" (
|
|||||||
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
||||||
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2014,7 +2015,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -2100,7 +2100,6 @@ if not defined showfix (
|
|||||||
echo:
|
echo:
|
||||||
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
||||||
echo A registry fix has been applied to enable the disabled service.
|
echo A registry fix has been applied to enable the disabled service.
|
||||||
echo:
|
|
||||||
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 fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
@@ -2141,7 +2140,6 @@ if not defined showfix (
|
|||||||
set listwospp=%_serv:sppsvc=%
|
set listwospp=%_serv:sppsvc=%
|
||||||
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -2173,7 +2171,6 @@ if defined wmifailed (
|
|||||||
call :dk_color %Red% "Checking WMI [Not Working]"
|
call :dk_color %Red% "Checking WMI [Not Working]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2188,7 +2185,6 @@ set showfix=1
|
|||||||
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
||||||
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
||||||
echo:
|
echo:
|
||||||
@@ -2209,7 +2205,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
|
|||||||
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
||||||
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -2240,7 +2235,6 @@ call :dk_color %Gray% "Checking SPP Token Folder [Not Found, Creat
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -2285,7 +2279,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
|
|||||||
if defined permerror (
|
if defined permerror (
|
||||||
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2307,7 +2300,6 @@ if defined chkalp (
|
|||||||
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
set error=1
|
set error=1
|
||||||
@@ -2320,7 +2312,6 @@ set wpainfo=a
|
|||||||
if not defined chkalp (
|
if not defined chkalp (
|
||||||
if %wpainfo% GEQ 5000 (
|
if %wpainfo% GEQ 5000 (
|
||||||
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2336,7 +2327,6 @@ echo Checking WPA Registry Count [%wpainfo%]
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
||||||
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2348,7 +2338,6 @@ set showfix=1
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
||||||
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2363,7 +2352,6 @@ set showfix=1
|
|||||||
if %error_code% NEQ 0 (
|
if %error_code% NEQ 0 (
|
||||||
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2393,7 +2381,6 @@ call :dk_color %Gray% "Checking Activation IDs [Key Not Installe
|
|||||||
if not defined apps if not defined allapps (
|
if not defined apps if not defined allapps (
|
||||||
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2403,7 +2390,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not defined showfix if defined rlicfailed (
|
if not defined showfix if defined rlicfailed (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -2421,7 +2407,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
||||||
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
@@ -2439,7 +2424,6 @@ set showfix=1
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
||||||
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -2477,6 +2461,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed
|
|||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
||||||
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
||||||
|
if not defined showfix (
|
||||||
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
set error=1
|
||||||
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -2506,7 +2497,9 @@ call :dk_color %Gray% "Checking SLC/WMI SKU [Difference Found
|
|||||||
|
|
||||||
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
||||||
|
|
||||||
if exist "%SysPath%\wlms\wlms.exe" (
|
sc query wlms %nul%
|
||||||
|
|
||||||
|
if %errorlevel% NEQ 1060 (
|
||||||
echo Checking Eval WLMS Service [Found]
|
echo Checking Eval WLMS Service [Found]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -2521,7 +2514,6 @@ if defined _sppint (
|
|||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -2556,7 +2548,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
|
|||||||
|
|
||||||
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -3239,13 +3230,13 @@ $MemoryStream.Close()
|
|||||||
::
|
::
|
||||||
:: The files are encoded in base64 to make AIO version.
|
:: The files are encoded in base64 to make AIO version.
|
||||||
::
|
::
|
||||||
:: mass()grave(dot)dev/ohook
|
:: mass{}grave{dot}dev/ohook
|
||||||
:: Here you can find the files source code and info on how to rebuild the identical sppc.dll files
|
:: Here you can find the files source code and info on how to rebuild the identical sppc.dll files
|
||||||
::
|
::
|
||||||
:: stackoverflow.com/a/35335273
|
:: stackoverflow.com/a/35335273
|
||||||
:: Here you can check how to extract sppc.dll files from base64
|
:: Here you can check how to extract sppc.dll files from base64
|
||||||
::
|
::
|
||||||
:: For any further question, feel free to contact us on mass()grave(dot)dev/contactus
|
:: For any further question, feel free to contact us on mass{}grave{dot}dev/contactus
|
||||||
::
|
::
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
::
|
::
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -125,9 +124,9 @@ set "nul="
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -301,7 +300,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -311,7 +309,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -322,7 +319,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -334,7 +330,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -355,7 +350,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -535,9 +529,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -817,9 +810,9 @@ call :dk_color %Red% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto :ks_activate
|
goto :ks_activate
|
||||||
@@ -1031,7 +1024,7 @@ if %winbuild% GEQ 9200 (
|
|||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath /reg:32" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
for /f "skip=2 tokens=2*" %%a in ('"reg query HKLM\SOFTWARE\Microsoft\Office\ClickToRun /v InstallPath /reg:32" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" set "_C16R=1"
|
||||||
if defined _C16R (
|
if defined _C16R (
|
||||||
REM mass()grave(dot)dev/office-license-is-not-genuine
|
REM mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
set _server=10.0.0.10
|
set _server=10.0.0.10
|
||||||
call :_taskregserv
|
call :_taskregserv
|
||||||
echo Keeping the non-existent IP address 10.0.0.10 as %KS% Server.
|
echo Keeping the non-existent IP address 10.0.0.10 as %KS% Server.
|
||||||
@@ -1491,10 +1484,10 @@ reg unload HKU\!defname! %nul%
|
|||||||
|
|
||||||
if defined vnextexist (
|
if defined vnextexist (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "Office vNext subscription detected:"
|
call :dk_color %Gray% "The logged-in Office account has a subscription license."
|
||||||
call :dk_color %Blue% "If active, this license overrides other activation methods."
|
call :dk_color %Blue% "If the subscription is active, it overrides other activation methods."
|
||||||
call :dk_color %Blue% "If expiring soon, rerun the script after expiration."
|
call :dk_color %Blue% "If it is expiring soon, rerun the activation script after it expires."
|
||||||
call :dk_color2 %Blue% "If expired and script activation fails, get help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "If it has already expired and activation fails, get help here - " %_Yellow% " %mas%troubleshoot"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -1595,7 +1588,6 @@ if %upk_result%==1 echo Uninstalling Other/Grace Keys [Successful]
|
|||||||
if %upk_result%==2 (
|
if %upk_result%==2 (
|
||||||
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -1649,7 +1641,6 @@ call :ks_clearstuff
|
|||||||
set error_=9
|
set error_=9
|
||||||
echo Failed to completely clear %KS% Cache.
|
echo Failed to completely clear %KS% Cache.
|
||||||
reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked.
|
reg query "HKLM\%SPPk%\%_wApp%" /s %nul2% | findstr /i "127.0.0.2" %nul1% && echo KMS38 activation is locked.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
) || (
|
) || (
|
||||||
@@ -1727,8 +1718,7 @@ exit /b
|
|||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -2337,7 +2327,6 @@ echo:
|
|||||||
echo This Script is a part of MAS project.
|
echo This Script is a part of MAS project.
|
||||||
echo:
|
echo:
|
||||||
echo Homepage: mass%w%grave%w%.dev
|
echo Homepage: mass%w%grave%w%.dev
|
||||||
echo Email: mas.help@outlook.com
|
|
||||||
)>"%_dest%\Info.txt"
|
)>"%_dest%\Info.txt"
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
@@ -2742,7 +2731,6 @@ echo %keyecho% %~1 [Successful]
|
|||||||
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -2863,7 +2851,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
@@ -2990,7 +2977,6 @@ if not "%results%%pupfound%"=="" (
|
|||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
||||||
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
@@ -3018,7 +3004,6 @@ call :dk_chkmal
|
|||||||
sc query Null %nul% || (
|
sc query Null %nul% || (
|
||||||
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3034,7 +3019,6 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot
|
|||||||
|
|
||||||
call :dk_color %Red% "Checking WinPE [Found]"
|
call :dk_color %Red% "Checking WinPE [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3049,7 +3033,6 @@ set showfix=1
|
|||||||
if defined safeboot_option (
|
if defined safeboot_option (
|
||||||
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3068,7 +3051,6 @@ if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" (
|
|||||||
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
||||||
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3077,7 +3059,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3163,7 +3144,6 @@ if not defined showfix (
|
|||||||
echo:
|
echo:
|
||||||
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
||||||
echo A registry fix has been applied to enable the disabled service.
|
echo A registry fix has been applied to enable the disabled service.
|
||||||
echo:
|
|
||||||
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 fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
@@ -3204,7 +3184,6 @@ if not defined showfix (
|
|||||||
set listwospp=%_serv:sppsvc=%
|
set listwospp=%_serv:sppsvc=%
|
||||||
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -3236,7 +3215,6 @@ if defined wmifailed (
|
|||||||
call :dk_color %Red% "Checking WMI [Not Working]"
|
call :dk_color %Red% "Checking WMI [Not Working]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3251,7 +3229,6 @@ set showfix=1
|
|||||||
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
||||||
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
||||||
echo:
|
echo:
|
||||||
@@ -3272,7 +3249,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
|
|||||||
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
||||||
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3303,7 +3279,6 @@ call :dk_color %Gray% "Checking SPP Token Folder [Not Found, Creat
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3348,7 +3323,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
|
|||||||
if defined permerror (
|
if defined permerror (
|
||||||
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3370,7 +3344,6 @@ if defined chkalp (
|
|||||||
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
set error=1
|
set error=1
|
||||||
@@ -3383,7 +3356,6 @@ set wpainfo=a
|
|||||||
if not defined chkalp (
|
if not defined chkalp (
|
||||||
if %wpainfo% GEQ 5000 (
|
if %wpainfo% GEQ 5000 (
|
||||||
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3399,7 +3371,6 @@ echo Checking WPA Registry Count [%wpainfo%]
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
||||||
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3411,7 +3382,6 @@ set showfix=1
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
||||||
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3426,7 +3396,6 @@ set showfix=1
|
|||||||
if %error_code% NEQ 0 (
|
if %error_code% NEQ 0 (
|
||||||
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3456,7 +3425,6 @@ call :dk_color %Gray% "Checking Activation IDs [Key Not Installe
|
|||||||
if not defined apps if not defined allapps (
|
if not defined apps if not defined allapps (
|
||||||
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3466,7 +3434,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not defined showfix if defined rlicfailed (
|
if not defined showfix if defined rlicfailed (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3484,7 +3451,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
||||||
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
@@ -3502,7 +3468,6 @@ set showfix=1
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
||||||
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3540,6 +3505,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed
|
|||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
||||||
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
||||||
|
if not defined showfix (
|
||||||
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
set error=1
|
||||||
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -3569,7 +3541,9 @@ call :dk_color %Gray% "Checking SLC/WMI SKU [Difference Found
|
|||||||
|
|
||||||
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
||||||
|
|
||||||
if exist "%SysPath%\wlms\wlms.exe" (
|
sc query wlms %nul%
|
||||||
|
|
||||||
|
if %errorlevel% NEQ 1060 (
|
||||||
echo Checking Eval WLMS Service [Found]
|
echo Checking Eval WLMS Service [Found]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -3584,7 +3558,6 @@ if defined _sppint (
|
|||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3619,7 +3592,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
|
|||||||
|
|
||||||
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -4232,9 +4204,6 @@ set notfoundaltactID=
|
|||||||
if %_NoEditionChange%==1 exit /b
|
if %_NoEditionChange%==1 exit /b
|
||||||
|
|
||||||
for %%# in (
|
for %%# in (
|
||||||
188_IoTEnterprise__________________8ab9bdd1-1f67-4997-82d9-8878520837d9_73111121-5638-40f6-bc11-f1d7b0d64300_NPPR9-FWDCX-D2C8J-H872K-2Y%f%T43_Enterprise
|
|
||||||
206_IoTEnterpriseK_________________80083eae-7031-4394-9e88-4901973d56fe_73111121-5638-40f6-bc11-f1d7b0d64300_NPPR9-FWDCX-D2C8J-H872K-2Y%f%T43_Enterprise
|
|
||||||
191_IoTEnterpriseS-2021____________ed655016-a9e8-4434-95d9-4345352c2552_32d2fab3-e4a8-42c2-923b-4bf4fd13e6ee_M7XTQ-FN8P6-TTKYV-9D4CC-J4%f%62D_EnterpriseS-2021
|
|
||||||
205_IoTEnterpriseSK________________d4f9b41f-205c-405e-8e08-3d16e88e02be_59eb965c-9150-42b7-a0ec-22151b9897c5_KBN8V-HFGQ4-MGXVD-347P6-PD%f%QGT_IoTEnterpriseS
|
205_IoTEnterpriseSK________________d4f9b41f-205c-405e-8e08-3d16e88e02be_59eb965c-9150-42b7-a0ec-22151b9897c5_KBN8V-HFGQ4-MGXVD-347P6-PD%f%QGT_IoTEnterpriseS
|
||||||
138_ProfessionalSingleLanguage_____a48938aa-62fa-4966-9d44-9f04da3f72f2_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
138_ProfessionalSingleLanguage_____a48938aa-62fa-4966-9d44-9f04da3f72f2_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
||||||
139_ProfessionalCountrySpecific____f7af7d09-40e4-419c-a49b-eae366689ebd_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
139_ProfessionalCountrySpecific____f7af7d09-40e4-419c-a49b-eae366689ebd_2de67392-b7a7-462a-b1ca-108dd189f588_W269N-WFGWX-YVC9B-4J6C9-T8%f%3GX_Professional
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -134,9 +133,9 @@ set "nul="
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -213,7 +212,6 @@ call :dk_setvar
|
|||||||
if %winbuild% EQU 1 (
|
if %winbuild% EQU 1 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to detect Windows build number.
|
echo Failed to detect Windows build number.
|
||||||
echo:
|
|
||||||
setlocal EnableDelayedExpansion
|
setlocal EnableDelayedExpansion
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
@@ -328,7 +326,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -338,7 +335,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -349,7 +345,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -361,7 +356,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -382,7 +376,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -605,9 +598,8 @@ echo:
|
|||||||
if not defined results (
|
if not defined results (
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
)
|
)
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -619,7 +611,6 @@ echo .NET 3.5 Framework is corrupt or missing. Aborting...
|
|||||||
if exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-Embedded" (
|
if exist "%SysPath%\spp\tokens\skus\Security-SPP-Component-SKU-Embedded" (
|
||||||
echo Install .NET Framework 4.8 and Windows Management Framework 5.1
|
echo Install .NET Framework 4.8 and Windows Management Framework 5.1
|
||||||
)
|
)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -633,7 +624,6 @@ if !errorlevel! EQU 1051 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Evaluation WLMS service is running, %_slser% service can not be stopped. Aborting...
|
echo Evaluation WLMS service is running, %_slser% service can not be stopped. Aborting...
|
||||||
echo Install Non-Eval version for Windows build %winbuild%.
|
echo Install Non-Eval version for Windows build %winbuild%.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -1116,7 +1106,7 @@ set w10EsuEditions=Education-EducationN-Enterprise-EnterpriseN-Professional-Prof
|
|||||||
|
|
||||||
set minbuild=0
|
set minbuild=0
|
||||||
if /i %tsedition%==ServerRdsh set minbuild=5552
|
if /i %tsedition%==ServerRdsh set minbuild=5552
|
||||||
for %%# in (Core CoreN CoreCountrySpecific CoreSingleLanguage) do (if /i %tsedition%==%%# set minbuild=6156)
|
for %%# in (Core CoreN CoreCountrySpecific CoreSingleLanguage IoTEnterprise) do (if /i %tsedition%==%%# set minbuild=6156)
|
||||||
if /i %tsedition%==PPIPro set minbuild=6388
|
if /i %tsedition%==PPIPro set minbuild=6388
|
||||||
|
|
||||||
set /a UBR=0
|
set /a UBR=0
|
||||||
@@ -1145,10 +1135,9 @@ f520e45e-7413-4a34-a497-d2765967d094_Client-ESU-Year1_-%w10EsuEditions%-%w10EsuE
|
|||||||
1043add5-23b1-4afb-9a0f-64343c8f3f8d_Client-ESU-Year2_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
1043add5-23b1-4afb-9a0f-64343c8f3f8d_Client-ESU-Year2_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
83d49986-add3-41d7-ba33-87c7bfb5c0fb_Client-ESU-Year3_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
83d49986-add3-41d7-ba33-87c7bfb5c0fb_Client-ESU-Year3_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
0b533b5e-08b6-44f9-b885-c2de291ba456_Client-ESU-Year6[4-6y]_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
0b533b5e-08b6-44f9-b885-c2de291ba456_Client-ESU-Year6[4-6y]_-%w10EsuEditions%-%w10EsuEditionsLaterAdded%
|
||||||
b8527af1-5389-447c-9a88-2d1691ea33d3_Client-IoT-ESU-Year1_-IoTEnterprise-
|
REM WindowsServer2016
|
||||||
7b76ee02-0a75-4f08-85d5-bd0feadad0c0_Client-IoT-ESU-Year2_-IoTEnterprise-
|
91bcac0a-d7d3-4d2b-bd0c-72fed675f01b_Server-ESU-Year3[1-3y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||||
4dac5a0c-5709-4595-a32c-14a56a4a6b31_Client-IoT-ESU-Year3_-IoTEnterprise-
|
4cd0ab30-73a4-4dde-972c-512f05be31df_Server-ESU-Year6[4-6y]_-ServerDatacenter-ServerDatacenterCore-ServerDatacenterV-ServerDatacenterVCore-ServerStandard-ServerStandardCore-ServerStandardV-ServerStandardVCore-
|
||||||
f69e2d51-3bbd-4ddf-8da7-a145e9dca597_Client-IoT-ESU-Year6[4-6y]_-IoTEnterprise-
|
|
||||||
) do (
|
) do (
|
||||||
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
for /f "tokens=1-3 delims=_" %%A in ("%%#") do (
|
||||||
echo "%allapps%" | find /i "%%A" %nul1% && (
|
echo "%allapps%" | find /i "%%A" %nul1% && (
|
||||||
@@ -1204,7 +1193,7 @@ goto :ts_off
|
|||||||
set esuavail=
|
set esuavail=
|
||||||
if defined _vis if defined isServer set esuavail=1
|
if defined _vis if defined isServer set esuavail=1
|
||||||
if %winbuild% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
if %winbuild% LEQ 7602 if not defined _vis if not defined isThinpc set esuavail=1
|
||||||
if %winbuild% GTR 7602 if %winbuild% LSS 10240 if defined isServer set esuavail=1
|
if %winbuild% GTR 7602 if %winbuild% LEQ 14393 if defined isServer set esuavail=1
|
||||||
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not defined isServer set esuavail=1
|
if %winbuild% GEQ 10240 if %winbuild% LEQ 19045 if not defined isServer set esuavail=1
|
||||||
if %winbuild% EQU 9600 set esuavail=1
|
if %winbuild% EQU 9600 set esuavail=1
|
||||||
|
|
||||||
@@ -1322,9 +1311,9 @@ call :dk_color %Gray% "Checking Installed Office [Not Found]"
|
|||||||
|
|
||||||
if defined ohub (
|
if defined ohub (
|
||||||
echo:
|
echo:
|
||||||
echo You only have the Office Dashboard app installed. You need to install the full version of Office.
|
echo You only have the Office Dashboard app installed; you need to install the full version of Office.
|
||||||
)
|
)
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from the URL below, then try again."
|
||||||
if %_actwin%==0 set fixes=%fixes% %mas%genuine-installation-media
|
if %_actwin%==0 set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto :ts_act
|
goto :ts_act
|
||||||
@@ -1474,7 +1463,7 @@ call :ts_process
|
|||||||
|
|
||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
:: mass()grave(dot)dev/office-license-is-not-genuine
|
:: mass{}grave{dot}dev/office-license-is-not-genuine
|
||||||
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
:: Add registry keys for volume products so that 'non-genuine' banner won't appear
|
||||||
|
|
||||||
set "kmskey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
|
set "kmskey=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\0ff1ce15-a989-479d-af46-f275c6370663"
|
||||||
@@ -1953,22 +1942,26 @@ if %_actman%==0 (if not defined showfix call :dk_color %Blue% "%_fixmsg%")
|
|||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
) else (
|
) else (
|
||||||
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26200 (
|
if /i %tsmethod%==KMS4k if %winbuild% GEQ 26100 (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
call :dk_color %Gray% "In Windows settings, you may see a renewal notification for activation that can be ignored."
|
||||||
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
if /i %_actmethod%==Auto call :dk_color %Gray% "To avoid this notification, run the script with an internet connection to use the StaticCID method."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
echo "%tsids%" | find /i "7e94be23-b161-4956-a682-146ab291774c" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but you can manually install updates."
|
call :dk_color %Gray% "Windows Update gets 1-3 years of ESU; 4-6 are unofficial but let you install Server 2008 R2 updates manually."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | findstr /i "4afc620f-12a4-48ad-8015-2aebfbd6e47c 11be7019-a309-4763-9a09-091d1722ffe3" %nul1% && (
|
echo "%tsids%" | findstr /i "4afc620f-12a4-48ad-8015-2aebfbd6e47c 11be7019-a309-4763-9a09-091d1722ffe3" %nul1% && (
|
||||||
call :dk_color %Gray% "ESU is not officially supported on Windows 8.1, but you can manually install updates until Jan-2024."
|
call :dk_color %Gray% "ESU is not officially supported on Windows 8.1, but updates can be installed manually until January 2024."
|
||||||
)
|
)
|
||||||
echo "%tsids%" | findstr /i "0b533b5e-08b6-44f9-b885-c2de291ba456 f69e2d51-3bbd-4ddf-8da7-a145e9dca597" %nul1% && (
|
echo "%tsids%" | findstr /i "83d49986-add3-41d7-ba33-87c7bfb5c0fb 0b533b5e-08b6-44f9-b885-c2de291ba456" %nul1% && (
|
||||||
call :dk_color %Gray% "Windows Update can receive 1-3 years of ESU. 4-6 years ESU is not officially supported, but it might be useful."
|
call :dk_color %Gray% "Windows Update gets 1-3 years of ESU; 4-6 are unofficial but may let you install LTSC updates manually."
|
||||||
|
if exist %SysPath%\ClipESUConsumer.exe (%SysPath%\ClipESUConsumer.exe -evaluateEligibility)
|
||||||
|
if exist %SysPath%\ClipESU.exe (%SysPath%\ClipESU.exe %nul%)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if defined esuexistsup echo Help: %mas%tsforge#windows-esu
|
||||||
|
|
||||||
if %_actwin%==1 for %%# in (407) do if %osSKU%==%%# (
|
if %_actwin%==1 for %%# in (407) do if %osSKU%==%%# (
|
||||||
call :dk_color %Red% "%winos% does not support activation on non-azure platforms."
|
call :dk_color %Red% "%winos% does not support activation on non-azure platforms."
|
||||||
)
|
)
|
||||||
@@ -2454,10 +2447,10 @@ reg unload HKU\!defname! %nul%
|
|||||||
|
|
||||||
if defined vnextexist (
|
if defined vnextexist (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Gray% "Office vNext subscription detected:"
|
call :dk_color %Gray% "The logged-in Office account has a subscription license."
|
||||||
call :dk_color %Blue% "If active, this license overrides other activation methods."
|
call :dk_color %Blue% "If the subscription is active, it overrides other activation methods."
|
||||||
call :dk_color %Blue% "If expiring soon, rerun the script after expiration."
|
call :dk_color %Blue% "If it is expiring soon, rerun the activation script after it expires."
|
||||||
call :dk_color2 %Blue% "If expired and script activation fails, get help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "If it has already expired and activation fails, get help here - " %_Yellow% " %mas%troubleshoot"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -2558,7 +2551,6 @@ if %upk_result%==1 echo Uninstalling Other/Grace Keys [Successful]
|
|||||||
if %upk_result%==2 (
|
if %upk_result%==2 (
|
||||||
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
call :dk_color %Red% "Uninstalling Other/Grace Keys [Failed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -2794,7 +2786,6 @@ echo %keyecho% %~1 [Successful]
|
|||||||
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
call :dk_color %Red% "%keyecho% %~1 [Failed] %keyerror%"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
if defined altapplist call :dk_color %Red% "Activation ID not found for this key."
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
set showfix=1
|
set showfix=1
|
||||||
@@ -2918,7 +2909,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
@@ -3000,7 +2990,6 @@ if not "%results%%pupfound%"=="" (
|
|||||||
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
if defined pupfound call :dk_color %Gray% "Checking PUP Activators [Found%pupfound%]"
|
||||||
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
if defined results call :dk_color %Red% "Checking Probable Mal%w%ware Infection..."
|
||||||
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
if defined results (call :dk_color %Red% "%results%"&set showfix=1)
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
echo:
|
echo:
|
||||||
@@ -3028,7 +3017,6 @@ call :dk_chkmal
|
|||||||
sc query Null %nul% || (
|
sc query Null %nul% || (
|
||||||
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
call :dk_color %Red% "Checking Sandboxing [Found, script may not work properly]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
call :dk_color %Blue% "If you are using any third-party antivirus, check if it is blocking the script."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3044,7 +3032,6 @@ reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\WinPE" /v InstRoot
|
|||||||
|
|
||||||
call :dk_color %Red% "Checking WinPE [Found]"
|
call :dk_color %Red% "Checking WinPE [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "WinPE mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3059,7 +3046,6 @@ set showfix=1
|
|||||||
if defined safeboot_option (
|
if defined safeboot_option (
|
||||||
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
call :dk_color %Red% "Checking Boot Mode [%safeboot_option%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
call :dk_color %Blue% "Safe mode found. Reboot the system and run in normal mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3078,7 +3064,6 @@ if /i not "%imagestate%"=="IMAGE_STATE_COMPLETE" (
|
|||||||
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
call :dk_color %Gray% "Checking Windows Setup State [%imagestate%]"
|
||||||
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
echo "%imagestate%" | find /i "RESEAL" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
call :dk_color %Blue% "You need to run it in normal mode in case you are running it in Audit Mode."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3087,7 +3072,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
echo "%imagestate%" | find /i "UNDEPLOYABLE" %nul% && (
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If the activation fails, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3173,7 +3157,6 @@ if not defined showfix (
|
|||||||
echo:
|
echo:
|
||||||
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
echo %serv_cste% | findstr /i "ClipSVC sppsvc" %nul% && (
|
||||||
echo A registry fix has been applied to enable the disabled service.
|
echo A registry fix has been applied to enable the disabled service.
|
||||||
echo:
|
|
||||||
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 fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
@@ -3214,7 +3197,6 @@ if not defined showfix (
|
|||||||
set listwospp=%_serv:sppsvc=%
|
set listwospp=%_serv:sppsvc=%
|
||||||
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
echo %serv_e% | findstr /i "!listwospp!" %nul% && (
|
||||||
set showfix=1
|
set showfix=1
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and run the script again."
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "If service error is still not fixed, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -3246,7 +3228,6 @@ if defined wmifailed (
|
|||||||
call :dk_color %Red% "Checking WMI [Not Working]"
|
call :dk_color %Red% "Checking WMI [Not Working]"
|
||||||
|
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WMI option."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3261,7 +3242,6 @@ set showfix=1
|
|||||||
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
if %winbuild% GEQ 7600 reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Plugins\Objects\msft:rm/algorithm/hwid/4.0" /f ba02fed39662 /d %nul% || (
|
||||||
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
call :dk_color %Red% "Checking SPP Registry Key [Incorrect ModuleId Found] [Most likely caused by gaming spoofers]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
set fixes=%fixes% %mas%issues_due_to_gaming_spoofers
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%issues_due_to_gaming_spoofers"
|
||||||
echo:
|
echo:
|
||||||
@@ -3282,7 +3262,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
|
|||||||
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
if %winbuild% GEQ 9200 if /i not "!tokenstore!"=="%SysPath%\spp\store" if /i not "!tokenstore!"=="%SysPath%\spp\store\2.0" if /i not "!tokenstore!"=="%SysPath%\spp\store_test\2.0" (
|
||||||
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
call :dk_color %Red% "Checking TokenStore Registry Key [Correct Path Not Found] [!tokenstore!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3313,7 +3292,6 @@ call :dk_color %Gray% "Checking SPP Token Folder [Not Found, Creat
|
|||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
call :dk_color %Red% "Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3358,7 +3336,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
|
|||||||
if defined permerror (
|
if defined permerror (
|
||||||
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
call :dk_color %Red% "Checking SPP Permissions [!permerror!]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3380,7 +3357,6 @@ if defined chkalp (
|
|||||||
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
call :dk_color %Red% "Checking WPA Registry Errors [%wpainfo%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
echo "%wpainfo%" | find /i "Error Found" %nul% && (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
set error=1
|
set error=1
|
||||||
@@ -3393,7 +3369,6 @@ set wpainfo=a
|
|||||||
if not defined chkalp (
|
if not defined chkalp (
|
||||||
if %wpainfo% GEQ 5000 (
|
if %wpainfo% GEQ 5000 (
|
||||||
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
call :dk_color %Gray% "Checking WPA Registry Count [%wpainfo%]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
call :dk_color %Blue% "A large number of WPA registries have been found, which may cause high CPU usage."
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3409,7 +3384,6 @@ echo Checking WPA Registry Count [%wpainfo%]
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\PersistedTSReArmed" %nul% && (
|
||||||
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
call :dk_color %Red% "Checking Rearm [System is Rearmed]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3421,7 +3395,6 @@ set showfix=1
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ClipSVC\Volatile\PersistedSystemState" %nul% && (
|
||||||
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
call :dk_color %Red% "Checking ClipSVC PersistedSystemState [Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
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."
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3436,7 +3409,6 @@ set showfix=1
|
|||||||
if %error_code% NEQ 0 (
|
if %error_code% NEQ 0 (
|
||||||
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
call :dk_color %Red% "Checking SoftwareLicensingService [Not Working] [%error_code%]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3466,7 +3438,6 @@ call :dk_color %Gray% "Checking Activation IDs [Key Not Installe
|
|||||||
if not defined apps if not defined allapps (
|
if not defined apps if not defined allapps (
|
||||||
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
call :dk_color %Red% "Checking Activation IDs [Not found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3476,7 +3447,6 @@ set showfix=1
|
|||||||
)
|
)
|
||||||
|
|
||||||
if not defined showfix if defined rlicfailed (
|
if not defined showfix if defined rlicfailed (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
call :dk_color %Blue% "If activation still fails then run Fix WPA Registry option."
|
||||||
echo:
|
echo:
|
||||||
@@ -3494,7 +3464,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
|
|||||||
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v EditionID %nul2% | find /i "Eval" %nul1% || (
|
||||||
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
call :dk_color %Red% "Checking Eval Packages [License swapping found. Non-Eval licenses are installed in Eval Windows]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
call :dk_color %Blue% "License swapping is not the right way to upgrade to the full version. Learn the correct method at the link below."
|
||||||
set fixes=%fixes% %mas%evaluation_editions
|
set fixes=%fixes% %mas%evaluation_editions
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%evaluation_editions"
|
||||||
@@ -3512,7 +3481,6 @@ set showfix=1
|
|||||||
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
reg query "HKU\S-1-5-20\Software\Microsoft\Windows NT\CurrentVersion" %nul% || (
|
||||||
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
call :dk_color %Red% "Checking HKU\S-1-5-20 Registry [Not Found]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
echo:
|
echo:
|
||||||
@@ -3550,6 +3518,13 @@ call :dk_color %Red% "Checking License Files [Not Found] [%osed
|
|||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-*-%osedition%-*.mum" (
|
||||||
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
if not exist "%SystemRoot%\Servicing\Packages\Microsoft-Windows-%osedition%Edition*.mum" (
|
||||||
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
call :dk_color %Red% "Checking Package Files [Not Found] [%osedition%]"
|
||||||
|
if not defined showfix (
|
||||||
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
set error=1
|
||||||
|
set showfix=1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -3579,7 +3554,9 @@ call :dk_color %Gray% "Checking SLC/WMI SKU [Difference Found
|
|||||||
|
|
||||||
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
:: This "WLMS" service was included in previous Eval editions (which were activable) to automatically shut down the system every hour after the evaluation period expired and prevent SPPSVC from stopping.
|
||||||
|
|
||||||
if exist "%SysPath%\wlms\wlms.exe" (
|
sc query wlms %nul%
|
||||||
|
|
||||||
|
if %errorlevel% NEQ 1060 (
|
||||||
echo Checking Eval WLMS Service [Found]
|
echo Checking Eval WLMS Service [Found]
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -3594,7 +3571,6 @@ if defined _sppint (
|
|||||||
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
echo %_sppint% | find /i "PerfOptions" %nul% && (
|
||||||
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
call :dk_color %Red% "Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "%_fixmsg%"
|
call :dk_color %Blue% "%_fixmsg%"
|
||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
@@ -3629,7 +3605,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
|
|||||||
|
|
||||||
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
call :dk_color %Gray% "Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
|
||||||
if not defined showfix (
|
if not defined showfix (
|
||||||
echo:
|
|
||||||
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
echo "!taskinfo!" | findstr /i "Removed Not Found" %nul1% && (
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
@@ -8848,6 +8823,7 @@ namespace LibTSforge.PhysicalStore
|
|||||||
$ErrorActionPreference = 'Stop'
|
$ErrorActionPreference = 'Stop'
|
||||||
$binPath = "$env:_work\BIN\LibTSforge.dll"
|
$binPath = "$env:_work\BIN\LibTSforge.dll"
|
||||||
$psMajorVer = (Get-Host).Version.Major
|
$psMajorVer = (Get-Host).Version.Major
|
||||||
|
$build = [System.Environment]::OSVersion.Version.Build
|
||||||
|
|
||||||
if (Test-Path -LiteralPath $binPath) {
|
if (Test-Path -LiteralPath $binPath) {
|
||||||
Write-Host "LibTSforge.dll found in BIN folder. Loading the DLL..."
|
Write-Host "LibTSforge.dll found in BIN folder. Loading the DLL..."
|
||||||
@@ -8946,7 +8922,12 @@ if (-not $env:resetstuff) {
|
|||||||
}
|
}
|
||||||
if ($env:tsmethod -eq "KMS4k") {
|
if ($env:tsmethod -eq "KMS4k") {
|
||||||
$GracePeriodStatus = Get-WmiInfo -tsactid $tsactid -property "GracePeriodRemaining"
|
$GracePeriodStatus = Get-WmiInfo -tsactid $tsactid -property "GracePeriodRemaining"
|
||||||
if ($GracePeriodStatus -gt 259200) { $activated = 1 }
|
if ($GracePeriodStatus -eq 259200 -or ([datetime]::Now.AddMinutes($GracePeriodStatus)).Year -gt 2038) {
|
||||||
|
if ((($build -ge 26100 -and $GracePeriodStatus -ge 259200) -or
|
||||||
|
($build -lt 26100 -and $GracePeriodStatus -gt 259200))) {
|
||||||
|
$activated = 1
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$licenseStatus = Get-WmiInfo -tsactid $tsactid -property "LicenseStatus"
|
$licenseStatus = Get-WmiInfo -tsactid $tsactid -property "LicenseStatus"
|
||||||
@@ -8960,8 +8941,14 @@ if (-not $env:resetstuff) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($env:tsmethod -eq "KMS4k") {
|
if ($env:tsmethod -eq "KMS4k") {
|
||||||
|
if ($build -ge 26100) {
|
||||||
|
Write-Host "[$prodName] is activated with KMS4k for over 4,000 years." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
|
Write-Host "From build 26100.7019, Windows will always display and stay at 180 days remaining if the actual period is longer." -ForegroundColor White -BackgroundColor Darkgray
|
||||||
|
}
|
||||||
|
else {
|
||||||
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
Write-Host "[$prodName] is permanently activated with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
Write-Host "[$prodName] is permanently activated with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -60,9 +59,9 @@ exit /b
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -215,7 +214,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -225,7 +223,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -236,7 +233,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -248,7 +244,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -269,7 +264,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -398,7 +392,6 @@ if %_wmic% EQU 0 set "chkedi=for /f "tokens=2 delims==" %%a in ('%psc% "(([WMISE
|
|||||||
if %osedition%==0 (
|
if %osedition%==0 (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to detect OS Edition. Aborting...
|
echo Failed to detect OS Edition. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -418,7 +411,6 @@ if not defined o16c2r_reg (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Office C2R 2016 or later is not installed, which is required for this script.
|
echo Office C2R 2016 or later is not installed, which is required for this script.
|
||||||
echo Download and install Office from below URL and try again.
|
echo Download and install Office from below URL and try again.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -435,7 +427,6 @@ if %verchk% LSS 9029 (
|
|||||||
echo Installed Office version is %_version%.
|
echo Installed Office version is %_version%.
|
||||||
echo Minimum required version is 16.0.9029.2167
|
echo Minimum required version is 16.0.9029.2167
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Download and install latest Office from below URL and try again."
|
call :dk_color %Blue% "Download and install latest Office from below URL and try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -458,7 +449,6 @@ _masterxml
|
|||||||
if not defined %%A (
|
if not defined %%A (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to find %%A. Aborting...
|
echo Failed to find %%A. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
call :dk_color %Blue% "Download and install Office from below URL and try again."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -471,7 +461,6 @@ if %winbuild% LSS 10240 if defined ltscfound (
|
|||||||
echo Installed Office appears to be from the Volume channel %ltsc19%%ltsc21%%ltsc24%,
|
echo Installed Office appears to be from the Volume channel %ltsc19%%ltsc21%%ltsc24%,
|
||||||
echo which is not officially supported on your Windows build version %winbuild%.
|
echo which is not officially supported on your Windows build version %winbuild%.
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -485,7 +474,6 @@ if defined unsupbuild (
|
|||||||
%eline%
|
%eline%
|
||||||
echo Unsupported Office %verchk% is installed on your Windows build version %winbuild%.
|
echo Unsupported Office %verchk% is installed on your Windows build version %winbuild%.
|
||||||
echo Aborting...
|
echo Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -592,7 +580,6 @@ mode 98, 45
|
|||||||
if not exist %SystemRoot%\Temp\%list%.txt (
|
if not exist %SystemRoot%\Temp\%list%.txt (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to generate available editions list.
|
echo Failed to generate available editions list.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -657,7 +644,6 @@ set suites=1
|
|||||||
if not exist %SystemRoot%\Temp\getAppIds.txt (
|
if not exist %SystemRoot%\Temp\getAppIds.txt (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to generate available apps list.
|
echo Failed to generate available apps list.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -810,7 +796,6 @@ if /i "%_lang%"=="%%#" set langmatched=1
|
|||||||
if not defined langmatched (
|
if not defined langmatched (
|
||||||
%eline%
|
%eline%
|
||||||
echo %_lang% language is not available for Project/Visio apps.
|
echo %_lang% language is not available for Project/Visio apps.
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Install Office in the supported language for Project/Visio from the below URL."
|
call :dk_color %Blue% "Install Office in the supported language for Project/Visio from the below URL."
|
||||||
set fixes=%fixes% %mas%genuine-installation-media
|
set fixes=%fixes% %mas%genuine-installation-media
|
||||||
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
call :dk_color %_Yellow% "%mas%genuine-installation-media"
|
||||||
@@ -1071,12 +1056,11 @@ call :dk_color %Gray% "Installed Office editions: %_oIds%"
|
|||||||
echo:
|
echo:
|
||||||
|
|
||||||
for %%# in (
|
for %%# in (
|
||||||
"5440fd1f-7ecb-4221-8110-145efaa6372f_Insider Fast [Beta] - Insiders::DevMain -"
|
"5440fd1f-7ecb-4221-8110-145efaa6372f_Beta / Insider Fast - Insiders::DevMain -"
|
||||||
"64256afe-f5d9-4f86-8936-8840a6a4f5be_Monthly Preview - Insiders::CC -"
|
"64256afe-f5d9-4f86-8936-8840a6a4f5be_Current / Monthly Preview - Insiders::CC -"
|
||||||
"492350f6-3a01-4f97-b9c0-c7c6ddf67d60_Monthly [Current] - Production::CC -"
|
"492350f6-3a01-4f97-b9c0-c7c6ddf67d60_Current / Monthly - Production::CC -"
|
||||||
"55336b82-a18d-4dd6-b5f6-9e5095c314a6_Monthly Enterprise - Production::MEC -"
|
"55336b82-a18d-4dd6-b5f6-9e5095c314a6_Monthly Enterprise - Production::MEC -"
|
||||||
"b8f9b850-328d-4355-9145-c59439a0c4cf_Semi Annual Preview - Insiders::FRDC -"
|
"7ffbc6bf-bc32-4f92-8982-f9dd17fd3114_Semi Annual Enterprise - Production::DC -"
|
||||||
"7ffbc6bf-bc32-4f92-8982-f9dd17fd3114_Semi Annual - Production::DC -"
|
|
||||||
"ea4a4090-de26-49d7-93c1-91bff9e53fc3_DevMain Channel - Dogfood::DevMain -"
|
"ea4a4090-de26-49d7-93c1-91bff9e53fc3_DevMain Channel - Dogfood::DevMain -"
|
||||||
"b61285dd-d9f7-41f2-9757-8f61cba4e9c8_Microsoft Elite - Microsoft::DevMain -"
|
"b61285dd-d9f7-41f2-9757-8f61cba4e9c8_Microsoft Elite - Microsoft::DevMain -"
|
||||||
"f2e724c1-748f-4b47-8fb8-8e0d210e9208_Perpetual2019 VL - Production::LTSC -"
|
"f2e724c1-748f-4b47-8fb8-8e0d210e9208_Perpetual2019 VL - Production::LTSC -"
|
||||||
@@ -1178,7 +1162,6 @@ goto :oe_goback
|
|||||||
if not defined build (
|
if not defined build (
|
||||||
%eline%
|
%eline%
|
||||||
call :dk_color %Red% "Failed to detect build number for the target FFN."
|
call :dk_color %Red% "Failed to detect build number for the target FFN."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -1216,7 +1199,6 @@ for /l %%i in (1,1,30) do (if !clverchk! LSS %buildchk% (call :ch_getinfo&timeou
|
|||||||
if %clverchk% LSS %buildchk% (
|
if %clverchk% LSS %buildchk% (
|
||||||
echo:
|
echo:
|
||||||
call :dk_color %Red% "Failed to update Office C2R client. Aborting..."
|
call :dk_color %Red% "Failed to update Office C2R client. Aborting..."
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto :oe_goback
|
goto :oe_goback
|
||||||
@@ -1619,7 +1601,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -65,9 +64,9 @@ exit /b
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -220,7 +219,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -230,7 +228,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -241,7 +238,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -253,7 +249,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -274,7 +269,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -396,12 +390,10 @@ dism.exe
|
|||||||
if not exist %SysPath%\%%# (
|
if not exist %SysPath%\%%# (
|
||||||
%eline%
|
%eline%
|
||||||
echo [%SysPath%\%%#] file is missing, aborting...
|
echo [%SysPath%\%%#] file is missing, aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
call :dk_color %Blue% "Go back to Main Menu, select Troubleshoot and run DISM Restore and SFC Scan options."
|
||||||
call :dk_color %Blue% "After that, restart system and try activation again."
|
call :dk_color %Blue% "After that, restart system and try activation again."
|
||||||
echo:
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
call :dk_color2 %Blue% "If it still shows the same error, do this - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -432,7 +424,6 @@ call :dk_actids 55c92734-d682-4d71-983e-d6ec3f16059f
|
|||||||
if not defined allapps (
|
if not defined allapps (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to find activation IDs. Aborting...
|
echo Failed to find activation IDs. Aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -454,7 +445,6 @@ if not defined osedition %chkedi% do if not errorlevel 1 (call set "osedition=%%
|
|||||||
if not defined osedition (
|
if not defined osedition (
|
||||||
%eline%
|
%eline%
|
||||||
echo Failed to detect OS edition, aborting...
|
echo Failed to detect OS edition, aborting...
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
call :dk_color %Blue% "To fix this issue, activate Windows from the main menu."
|
||||||
goto dk_done
|
goto dk_done
|
||||||
)
|
)
|
||||||
@@ -604,7 +594,7 @@ set _dismapi=1
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
set "keyflow=Retail Volume:GVLK Volume:MAK OEM:NONSLP OEM:DM PGS:TB Retail:TB:Eval"
|
set "keyflow=Retail OEM:NONSLP OEM:DM Volume:MAK Volume:GVLK PGS:TB Retail:TB:Eval"
|
||||||
|
|
||||||
call :ced_targetSKU %targetedition%
|
call :ced_targetSKU %targetedition%
|
||||||
if defined targetSKU call :ced_windowskey
|
if defined targetSKU call :ced_windowskey
|
||||||
@@ -619,7 +609,6 @@ if not defined key (
|
|||||||
%eline%
|
%eline%
|
||||||
echo [%targetedition% ^| %winbuild%]
|
echo [%targetedition% ^| %winbuild%]
|
||||||
echo Failed to get product key from pkeyhelper.dll.
|
echo Failed to get product key from pkeyhelper.dll.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -674,7 +663,6 @@ echo:
|
|||||||
call :dk_color %Gray% "Reboot is required to fully change the edition."
|
call :dk_color %Gray% "Reboot is required to fully change the edition."
|
||||||
) else (
|
) else (
|
||||||
call :dk_color %Red% "[Unsuccessful] [Error Code: !keyerror!]"
|
call :dk_color %Red% "[Unsuccessful] [Error Code: !keyerror!]"
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
)
|
)
|
||||||
@@ -755,7 +743,6 @@ if not defined key (
|
|||||||
%eline%
|
%eline%
|
||||||
echo [%targetedition% ^| %winbuild%]
|
echo [%targetedition% ^| %winbuild%]
|
||||||
echo Failed to get product key from pkeyhelper.dll.
|
echo Failed to get product key from pkeyhelper.dll.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -973,7 +960,6 @@ if %spperror% NEQ 1056 if %spperror% NEQ 0 (
|
|||||||
%eline%
|
%eline%
|
||||||
echo sc start %_slser% [Error Code: %spperror%]
|
echo sc start %_slser% [Error Code: %spperror%]
|
||||||
if %spperror% EQU 1053 (
|
if %spperror% EQU 1053 (
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
call :dk_color %Blue% "Reboot your machine using the restart option and try again."
|
||||||
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
call :dk_color %Blue% "If it still does not work, go back to Main Menu, select Troubleshoot and run Fix WPA Registry option."
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
::============================================================================
|
||||||
|
::
|
||||||
:: Check-Activation-Status
|
:: Check-Activation-Status
|
||||||
:: Written by @abbodi1406
|
:: Written by @abbodi1406
|
||||||
:: https://gravesoft.dev/cas
|
::
|
||||||
|
::============================================================================
|
||||||
|
|
||||||
|
|
||||||
:: Set Environment variables, it helps if they are misconfigured in the system
|
:: Set Environment variables, it helps if they are misconfigured in the system
|
||||||
@@ -518,6 +521,7 @@ function DetectSubscription {
|
|||||||
function DetectAdbaClient
|
function DetectAdbaClient
|
||||||
{
|
{
|
||||||
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
|
$propADBA | foreach { set $_ (SlGetInfoSku $licID $_) }
|
||||||
|
DetectActType
|
||||||
CONOUT "`nAD Activation client information:"
|
CONOUT "`nAD Activation client information:"
|
||||||
CONOUT " Object Name: $ADActivationObjectName"
|
CONOUT " Object Name: $ADActivationObjectName"
|
||||||
CONOUT " Domain Name: $ADActivationObjectDN"
|
CONOUT " Domain Name: $ADActivationObjectDN"
|
||||||
@@ -608,17 +612,18 @@ function DetectKmsHost
|
|||||||
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
|
if ($null -NE $KeyManagementServiceNotificationRequests) {CONOUT " Notification: $KeyManagementServiceNotificationRequests"}
|
||||||
}
|
}
|
||||||
|
|
||||||
function DetectKmsClient
|
function DetectActType
|
||||||
{
|
{
|
||||||
if ($win8)
|
|
||||||
{
|
|
||||||
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
|
$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp + '\' + $licID) "VLActivationType"
|
||||||
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
|
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath + '\' + $strApp) "VLActivationType"}
|
||||||
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
|
if ($null -EQ $VLType) {$VLType = strGetRegistry ($SPKeyPath) "VLActivationType"}
|
||||||
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
|
if ($null -EQ $VLType -Or $VLType -GT 3) {$VLType = 0}
|
||||||
}
|
|
||||||
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
|
if ($null -NE $VLType) {CONOUT "Configured Activation Type: $($VLActTypes[$VLType])"}
|
||||||
|
}
|
||||||
|
|
||||||
|
function DetectKmsClient
|
||||||
|
{
|
||||||
|
if ($win8) {DetectActType}
|
||||||
CONOUT "`r"
|
CONOUT "`r"
|
||||||
if ($LicenseStatus -NE 1) {
|
if ($LicenseStatus -NE 1) {
|
||||||
CONOUT "Please activate the product in order to update KMS client information values."
|
CONOUT "Please activate the product in order to update KMS client information values."
|
||||||
@@ -866,6 +871,7 @@ function GetResult($strSLP, $strApp, $entry)
|
|||||||
|
|
||||||
if ($win8 -And $VLActivationType -EQ 1) {
|
if ($win8 -And $VLActivationType -EQ 1) {
|
||||||
DetectAdbaClient
|
DetectAdbaClient
|
||||||
|
$cKmsClient = $null
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($winID -And $null -NE $cAvmClient) {
|
if ($winID -And $null -NE $cAvmClient) {
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -60,9 +59,9 @@ exit /b
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -231,7 +230,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto done2
|
goto done2
|
||||||
@@ -241,7 +239,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto done2
|
goto done2
|
||||||
@@ -252,7 +249,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto done2
|
goto done2
|
||||||
@@ -264,7 +260,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto done2
|
goto done2
|
||||||
@@ -285,7 +280,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto done2
|
goto done2
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
@set masver=3.7
|
@set masver=3.10
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::============================================================================
|
::============================================================================
|
||||||
::
|
::
|
||||||
:: Homepage: mass()grave(dot)dev
|
:: Homepage: m{}assgrave{dot}dev
|
||||||
:: Email: mas.help@outlook.com
|
|
||||||
::
|
::
|
||||||
::============================================================================
|
::============================================================================
|
||||||
|
|
||||||
@@ -60,9 +59,9 @@ exit /b
|
|||||||
::========================================================================================================================================
|
::========================================================================================================================================
|
||||||
|
|
||||||
set "blank="
|
set "blank="
|
||||||
set "mas=ht%blank%tps%blank%://mass%blank%grave.dev/"
|
set "mas=ht%blank%tps%blank%://m%blank%ass%blank%grave.dev/"
|
||||||
set "github=ht%blank%tps%blank%://github.com/massgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
set "github=ht%blank%tps%blank%://github.com/m%blank%assgra%blank%vel/Micro%blank%soft-Acti%blank%vation-Scripts"
|
||||||
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/massg%blank%rave/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
set "selfgit=ht%blank%tps%blank%://git.acti%blank%vated.win/Micr%blank%osoft-Act%blank%ivation-Scripts"
|
||||||
|
|
||||||
:: Check if Null service is working, it's important for the batch script
|
:: Check if Null service is working, it's important for the batch script
|
||||||
|
|
||||||
@@ -232,7 +231,6 @@ REM check LanguageMode
|
|||||||
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
echo: !tstresult2! | findstr /i "ConstrainedLanguage RestrictedLanguage NoLanguage" %nul1% && (
|
||||||
echo FullLanguage mode not found in PowerShell. Aborting...
|
echo FullLanguage mode not found in PowerShell. Aborting...
|
||||||
echo If you have applied restrictions on Powershell then undo those changes.
|
echo If you have applied restrictions on Powershell then undo those changes.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%fix_powershell
|
set fixes=%fixes% %mas%fix_powershell
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%fix_powershell"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -242,7 +240,6 @@ REM check Powershell core version
|
|||||||
|
|
||||||
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
cmd /c "%psc% "$PSVersionTable.PSEdition"" | find /i "Core" %nul1% && (
|
||||||
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -253,7 +250,6 @@ REM check for Mal-ware that may cause issues with Powershell
|
|||||||
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
for /r "%ProgramFiles%\" %%f in (secureboot.exe) do if exist "%%f" (
|
||||||
echo "%%f"
|
echo "%%f"
|
||||||
echo Mal%blank%ware found, PowerShell is not working properly.
|
echo Mal%blank%ware found, PowerShell is not working properly.
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%remove_mal%w%ware
|
set fixes=%fixes% %mas%remove_mal%w%ware
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%remove_mal%w%ware"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -265,7 +261,6 @@ if /i "!tstresult2!"=="FullLanguage" (
|
|||||||
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
cmd /c "%psc% ""try {[System.AppDomain]::CurrentDomain.GetAssemblies(); [System.Math]::Sqrt(144)} catch {Exit 3}""" %nul%
|
||||||
if !errorlevel!==3 (
|
if !errorlevel!==3 (
|
||||||
echo Windows Powershell failed to load .NET command. Aborting...
|
echo Windows Powershell failed to load .NET command. Aborting...
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%in-place_repair_upgrade
|
set fixes=%fixes% %mas%in-place_repair_upgrade
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%in-place_repair_upgrade"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -286,7 +281,6 @@ echo Installed Antivirus - Microsoft Defender for Endpoint
|
|||||||
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
cmd /c "%psc% ""$av = Get-WmiObject -Namespace root\SecurityCenter2 -Class AntiVirusProduct; $n = @(); foreach ($i in $av) { $n += $i.displayName }; if ($n) { Write-Host ('Installed Antivirus - ' + ($n -join ', '))}"""
|
||||||
)
|
)
|
||||||
|
|
||||||
echo:
|
|
||||||
set fixes=%fixes% %mas%troubleshoot
|
set fixes=%fixes% %mas%troubleshoot
|
||||||
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
call :dk_color2 %Blue% "Check this webpage for help - " %_Yellow% " %mas%troubleshoot"
|
||||||
goto dk_done
|
goto dk_done
|
||||||
@@ -619,7 +613,7 @@ call :dk_color %Blue% "Rebuilding ClipSVC Licenses..."
|
|||||||
echo:
|
echo:
|
||||||
|
|
||||||
if %winbuild% LSS 10240 (
|
if %winbuild% LSS 10240 (
|
||||||
echo ClipSVC license rebuilding is supported only on Windows 10/11 and their Server equivalents.
|
echo ClipSVC license rebuilding is supported only on Windows 10/11.
|
||||||
echo Skipping...
|
echo Skipping...
|
||||||
goto :rebuildspptok
|
goto :rebuildspptok
|
||||||
)
|
)
|
||||||
@@ -630,6 +624,40 @@ echo Skipping...
|
|||||||
goto :rebuildspptok
|
goto :rebuildspptok
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set _partial=
|
||||||
|
set _keymatch=
|
||||||
|
for /f "tokens=2 delims==" %%# in ('%psc% "(([WMISEARCHER]'SELECT PartialProductKey FROM SoftwareLicensingProduct WHERE ApplicationID=''55c92734-d682-4d71-983e-d6ec3f16059f'' AND PartialProductKey IS NOT NULL AND LicenseDependsOn is NULL').Get()).PartialProductKey | %% {echo ('PartialProductKey='+$_)}" %nul6%') do set "_partial=%%#"
|
||||||
|
for %%# in (8HV2C QPFCT 3V66T PKCKT WXCHW 8TYMD 6F4BT 8HVX7 KD72Y 7CFBY DRR8H P39PB DYJWX MDWWW 9HKR4 M7V2X 2YV77 WT2RQ MHBPB QPF8P 2YV66 VMJ2C DJ4F6 CKFFD YY74H J8JXD BHDCD T6R4W D32MH RRK69 3PJBP) do if /i "%_partial%"=="%%#" set _keymatch=1
|
||||||
|
|
||||||
|
if not defined _keymatch (
|
||||||
|
echo HWID activation key is not installed.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
|
%psc% "If([Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]'{DCB00C01-570F-4A9B-8D69-199FDBA5723B}')).IsConnectedToInternet){Exit 0}Else{Exit 1}"
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo Internet is not connected.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
|
set resfail=
|
||||||
|
for %%# in (
|
||||||
|
licensing.mp.microsoft.com/v7.0/licenses/content
|
||||||
|
login.live.com/ppsecure/deviceaddcredential.srf
|
||||||
|
purchase.mp.microsoft.com/v7.0/users/me/orders
|
||||||
|
) do if not defined resfail (
|
||||||
|
%psc% "try { [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12; irm https://%%# -Method POST } catch { if ($_.Exception.Response -eq $null) { Write-Host """"[%%#] $($_.Exception.Message)"""" -ForegroundColor Red -BackgroundColor Black; exit 3 } }"
|
||||||
|
if !errorlevel!==3 set resfail=1
|
||||||
|
)
|
||||||
|
|
||||||
|
if defined resfail (
|
||||||
|
echo Failed to connect to licensing servers.
|
||||||
|
echo Skipping...
|
||||||
|
goto :rebuildspptok
|
||||||
|
)
|
||||||
|
|
||||||
echo Stopping ClipSVC service...
|
echo Stopping ClipSVC service...
|
||||||
%psc% Stop-Service ClipSVC -force %nul%
|
%psc% Stop-Service ClipSVC -force %nul%
|
||||||
timeout /t 2 %nul%
|
timeout /t 2 %nul%
|
||||||
@@ -945,8 +973,8 @@ for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\16.0\Common\InstallRoot /v P
|
|||||||
|
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_86=Office 15.0 C2R x86" & call :getc2rrepair c2r15repair86 integratedoffice.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_86=Office 15.0 C2R x86" & call :getc2rrepair c2r15repair86 integratedoffice.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_68=Office 15.0 C2R x86/x64" & call :getc2rrepair c2r15repair68 integratedoffice.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\15.0\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses\ProPlus*.xrm-ms" (set "c2r15_68=Office 15.0 C2R x86/x64" & call :getc2rrepair c2r15repair68 integratedoffice.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_86=Office 16.0 C2R x86" & call :getc2rrepair c2r16repair86 OfficeClickToRun.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_86%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_86=Office 16.0 C2R x86" & call :getc2r16repair c2r16repair86 OfficeClickToRun.exe)
|
||||||
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_68=Office 16.0 C2R x86/x64" & call :getc2rrepair c2r16repair68 OfficeClickToRun.exe)
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\ClickToRun /v InstallPath" %nul6%') do if exist "%%b\root\Licenses16\ProPlus*.xrm-ms" (set "c2r16_68=Office 16.0 C2R x86/x64" & call :getc2r16repair c2r16repair68 OfficeClickToRun.exe)
|
||||||
|
|
||||||
set uwp16=
|
set uwp16=
|
||||||
if %winbuild% GEQ 10240 (
|
if %winbuild% GEQ 10240 (
|
||||||
@@ -988,13 +1016,11 @@ echo ________________________________________________________________
|
|||||||
echo:
|
echo:
|
||||||
)
|
)
|
||||||
|
|
||||||
if %counter% EQU 0 (
|
|
||||||
echo:
|
echo:
|
||||||
|
if %counter% EQU 0 (
|
||||||
echo Office ^(2010 and later^) is not installed.
|
echo Office ^(2010 and later^) is not installed.
|
||||||
goto :repairend
|
goto :repairend
|
||||||
echo:
|
) else if not defined c2r16_68 if not defined c2r16_86 (
|
||||||
) else (
|
|
||||||
echo:
|
|
||||||
call :dk_color %_Yellow% "A new window will appear, in that window you need to select [Quick Repair] option."
|
call :dk_color %_Yellow% "A new window will appear, in that window you need to select [Quick Repair] option."
|
||||||
if defined terminal (
|
if defined terminal (
|
||||||
call :dk_color %_Yellow% "Press [0] to continue..."
|
call :dk_color %_Yellow% "Press [0] to continue..."
|
||||||
@@ -1029,8 +1055,8 @@ if defined msi16_68 if exist "%msi16repair68%" echo Running - "%msi16repair68%"
|
|||||||
if defined msi16_86 if exist "%msi16repair86%" echo Running - "%msi16repair86%" & "%msi16repair86%"
|
if defined msi16_86 if exist "%msi16repair86%" echo Running - "%msi16repair86%" & "%msi16repair86%"
|
||||||
if defined c2r15_68 if exist "%c2r15repair68%" echo Running - "%c2r15repair68%" REPAIRUI RERUNMODE & "%c2r15repair68%" REPAIRUI RERUNMODE
|
if defined c2r15_68 if exist "%c2r15repair68%" echo Running - "%c2r15repair68%" REPAIRUI RERUNMODE & "%c2r15repair68%" REPAIRUI RERUNMODE
|
||||||
if defined c2r15_86 if exist "%c2r15repair86%" echo Running - "%c2r15repair86%" REPAIRUI RERUNMODE & "%c2r15repair86%" REPAIRUI RERUNMODE
|
if defined c2r15_86 if exist "%c2r15repair86%" echo Running - "%c2r15repair86%" REPAIRUI RERUNMODE & "%c2r15repair86%" REPAIRUI RERUNMODE
|
||||||
if defined c2r16_68 if exist "%c2r16repair68%" echo Running - "%c2r16repair68%" scenario=Repair & "%c2r16repair68%" scenario=Repair
|
if defined c2r16_68 if exist "%c2r16repair68%" echo Running - "%c2r16repair68%" Scenario=Repair RepairType=QuickRepair & "%c2r16repair68%" Scenario=Repair RepairType=QuickRepair
|
||||||
if defined c2r16_86 if exist "%c2r16repair86%" echo Running - "%c2r16repair86%" scenario=Repair & "%c2r16repair86%" scenario=Repair
|
if defined c2r16_86 if exist "%c2r16repair86%" echo Running - "%c2r16repair86%" Scenario=Repair RepairType=QuickRepair & "%c2r16repair86%" Scenario=Repair RepairType=QuickRepair
|
||||||
|
|
||||||
:repairend
|
:repairend
|
||||||
|
|
||||||
@@ -1050,6 +1076,13 @@ set "%1=%systemdrive%\Program Files\Microsoft Office 15\Client%%#\%2"
|
|||||||
)
|
)
|
||||||
exit /b
|
exit /b
|
||||||
|
|
||||||
|
:getc2r16repair
|
||||||
|
|
||||||
|
for %%# in (%_68% %_86%) do (
|
||||||
|
for /f "skip=2 tokens=2*" %%a in ('"reg query %%#\ClickToRun\Configuration /v ClientFolder" %nul6%') do if exist "%%b\%2" (set "%1=%%b\%2")
|
||||||
|
)
|
||||||
|
exit /b
|
||||||
|
|
||||||
:getrepairsetup
|
:getrepairsetup
|
||||||
|
|
||||||
set "_common86=%systemdrive%\Program Files (x86)\Common Files\Microsoft Shared\OFFICE%2\Office Setup Controller\setup.exe"
|
set "_common86=%systemdrive%\Program Files (x86)\Common Files\Microsoft Shared\OFFICE%2\Office Setup Controller\setup.exe"
|
||||||
@@ -1127,7 +1160,6 @@ sc query Winmgmt | find /i "STOPPED" %nul% && (
|
|||||||
echo [Successful]
|
echo [Successful]
|
||||||
) || (
|
) || (
|
||||||
call :dk_color %Red% "[Failed]"
|
call :dk_color %Red% "[Failed]"
|
||||||
echo:
|
|
||||||
call :dk_color %Blue% "Its recommended to select [Restart] option and then apply Fix WMI option again."
|
call :dk_color %Blue% "Its recommended to select [Restart] option and then apply Fix WMI option again."
|
||||||
echo %line%
|
echo %line%
|
||||||
echo:
|
echo:
|
||||||
|
|||||||
96
README.md
96
README.md
@@ -2,19 +2,18 @@
|
|||||||
|
|
||||||
<h1 align="center">Microsoft Activation Scripts (MAS)</h1>
|
<h1 align="center">Microsoft Activation Scripts (MAS)</h1>
|
||||||
|
|
||||||
<p align="center">Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting.</p>
|
<p align="center">Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.</p>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
## How to Activate Windows / Office / Extended Updates (ESU)?
|
## How to Activate Windows / Office / Extended Security Updates (ESU)?
|
||||||
|
|
||||||
### Method 1 - PowerShell ❤️
|
### Method 1 - PowerShell ❤️
|
||||||
|
|
||||||
1. **Open PowerShell**
|
1. Click the **Start Menu**, type `PowerShell`, and open it.
|
||||||
Click the **Start Menu**, type `PowerShell`, then open it.
|
|
||||||
|
|
||||||
2. **Copy and paste the code below, then press enter.**
|
2. Copy and paste the code below and press **Enter.**
|
||||||
- For **Windows 8, 10, 11**: 📌
|
- For **Windows 8.1, 10 and 11**:
|
||||||
```
|
```
|
||||||
irm https://get.activated.win | iex
|
irm https://get.activated.win | iex
|
||||||
```
|
```
|
||||||
@@ -22,89 +21,64 @@
|
|||||||
```
|
```
|
||||||
iex (curl.exe -s --doh-url https://1.1.1.1/dns-query https://get.activated.win | Out-String)
|
iex (curl.exe -s --doh-url https://1.1.1.1/dns-query https://get.activated.win | Out-String)
|
||||||
```
|
```
|
||||||
- For **Windows 7** and later:
|
- **Script not launching? Use the below-listed Method 2.**
|
||||||
```
|
|
||||||
iex ((New-Object Net.WebClient).DownloadString('https://get.activated.win'))
|
|
||||||
```
|
|
||||||
- **Script not launching❓Use the below-listed Method 2.**
|
|
||||||
|
|
||||||
3. The activation menu will appear. **Choose the green-highlighted options** to activate Windows or Office.
|
3. In the menu that appears, type the number corresponding to one of the **Green** options.
|
||||||
|
|
||||||
4. **Done!**
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Method 2 - Traditional (Windows Vista and later)
|
### Method 2 - Traditional (Windows Vista and later)
|
||||||
|
|
||||||
1. Download the script: [**MAS_AIO.cmd**](https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?path=/MAS/All-In-One-Version-KL/MAS_AIO.cmd&download=true) or the [full ZIP](https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?$format=zip).
|
1. Download the script:
|
||||||
2. Run the file named `MAS_AIO.cmd`.
|
* [**MAS_AIO.cmd**](https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?path=/MAS/All-In-One-Version-KL/MAS_AIO.cmd&download=true) (Direct script)
|
||||||
3. You will see the activation options. Follow the on-screen instructions.
|
* [**MAS_AIO.zip**](https://dev.azure.com/massgrave/Microsoft-Activation-Scripts/_apis/git/repositories/Microsoft-Activation-Scripts/items?$format=zip) (If the direct script is blocked by your browser)
|
||||||
4. That's all.
|
2. Run the `MAS_AIO.cmd` file.
|
||||||
|
3. In the menu that appears, type the number corresponding to one of the **Green** options.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> - Some ISPs/DNS block access to our domains. You can bypass this by enabling [DNS-over-HTTPS (DoH)](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/encrypted-dns-browsers/) in your browser.
|
> - Some ISPs/DNS providers block access to our domains. You can bypass this by enabling [DNS-over-HTTPS (DoH)](https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/encrypted-dns-browsers/) in your browser.
|
||||||
> - **Having trouble**❓Visit our [troubleshooting page](https://massgrave.dev/troubleshoot) or raise an issue on [GitHub](https://github.com/massgravel/Microsoft-Activation-Scripts/issues).
|
> - **Having trouble**? Visit our [troubleshooting page](https://massgrave.dev/troubleshoot) or raise an issue on [GitHub](https://github.com/massgravel/Microsoft-Activation-Scripts/issues).
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
- To activate additional products such as **Office for macOS, Visual Studio, RDS CALs, and Windows XP**, check [here](https://massgrave.dev/unsupported_products_activation).
|
|
||||||
- To run the scripts in unattended mode, check [here](https://massgrave.dev/command_line_switches).
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
>
|
>
|
||||||
> - The IRM command in PowerShell downloads a script from a specified URL, and the IEX command executes it.
|
> - The `irm` command in PowerShell downloads a script from a specified URL, and the `iex` command executes it.
|
||||||
> - Always double-check the URL before executing the command and verify the source if manually downloading files.
|
> - Always double-check the URL before executing the command and verify the source is trustworthy when manually downloading files.
|
||||||
> - Be cautious, as some spread malware disguised as MAS by using different URLs in the IRM command.
|
> - Be cautious of third parties spreading malware disguised as MAS by altering the URL in the PowerShell command.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
```
|
|
||||||
Latest Version: 3.7
|
|
||||||
Release date: 11-Sep-2025
|
|
||||||
```
|
|
||||||
|
|
||||||
### [Troubleshooting / Help](https://massgrave.dev/troubleshoot)
|
|
||||||
### [Download Original Windows & Office](https://massgrave.dev/genuine-installation-media)
|
|
||||||
### Homepage - [https://massgrave.dev/](https://massgrave.dev/)
|
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
|
### Homepage - [https://massgrave.dev/](https://massgrave.dev/)
|
||||||
|
|
||||||
[![1.1]][1]
|
[![1.1]][1]
|
||||||
[![1.2]][2]
|
[![1.2]][2]
|
||||||
[![1.3]][3]
|
[![1.3]][3]
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
|
|
||||||
[![1.4]][4]
|
[![1.4]][4]
|
||||||
[![1.5]][5]
|
[![1.5]][5]
|
||||||
[![1.6]][6]
|
[![1.6]][6]
|
||||||
[![1.7]][7]
|
[![1.7]][7]
|
||||||
|
|
||||||
</div>
|
[1.1]: https://massgrave.dev/img/logo_discord.png (Chat with us without signup)
|
||||||
|
[1.2]: https://massgrave.dev/img/logo_reddit.png (Reddit)
|
||||||
|
[1.3]: https://massgrave.dev/img/logo_bluesky.png (Bluesky)
|
||||||
|
[1.4]: https://massgrave.dev/img/logo_x.png (Twitter)
|
||||||
|
|
||||||
[1.1]: https://massgrave.dev/img/logo_github.png (GitHub)
|
[1.5]: https://massgrave.dev/img/logo_github.png (GitHub)
|
||||||
[1.2]: https://massgrave.dev/img/logo_azuredevops.png (AzureDevOps)
|
[1.6]: https://massgrave.dev/img/logo_azuredevops.png (AzureDevOps)
|
||||||
[1.3]: https://massgrave.dev/img/logo_gitea.png (Self-hosted Git)
|
[1.7]: 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]: https://discord.gg/j2yFsV5ZVC
|
||||||
[1.5]: https://massgrave.dev/img/logo_reddit.png (Reddit)
|
[2]: https://www.reddit.com/r/MAS_Activator
|
||||||
[1.6]: https://massgrave.dev/img/logo_bluesky.png (Bluesky)
|
[3]: https://bsky.app/profile/massgrave.dev
|
||||||
[1.7]: https://massgrave.dev/img/logo_x.png (Twitter)
|
[4]: https://twitter.com/massgravel
|
||||||
|
[5]: https://github.com/massgravel/Microsoft-Activation-Scripts
|
||||||
[1]: https://github.com/massgravel/Microsoft-Activation-Scripts
|
[6]: https://dev.azure.com/massgrave/_git/Microsoft-Activation-Scripts
|
||||||
[2]: https://dev.azure.com/massgrave/_git/Microsoft-Activation-Scripts
|
[7]: https://git.activated.win/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
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<p align="center">Made with Love ❤️</p>
|
Latest Version: 3.10
|
||||||
|
Release date: 19-Nov-2025
|
||||||
|
|||||||
Reference in New Issue
Block a user