echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -283,7 +287,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -283,7 +287,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -295,7 +298,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -295,7 +298,6 @@ if /i "!tstresult2!"=="FullLanguage" (
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."
echo:
)
@ -790,12 +785,10 @@ set error=1
@@ -790,12 +785,10 @@ set error=1
call:dk_color%Red%"Checking Windows Update Registry [Corruption Found]"
if!wcount!GTR 2 (
call:dk_color%Red%"Windows seems to be infected with Mal%w%ware."
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
echo:
) else (
echo:
call:dk_color%Blue%"HWID activation needs working Windows updates, if you have used any tool to block updates, undo it."
echo:
)
@ -806,7 +799,6 @@ set error=1
@@ -806,7 +799,6 @@ set error=1
setwuerror=1
sc start wuauserv %nul%
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."
echo:
)
@ -821,7 +813,6 @@ if %keyerror% EQU 0 if not defined _perm if defined _int (
@@ -821,7 +813,6 @@ if %keyerror% EQU 0 if not defined _perm if defined _int (
if%hcount%==4 set"results=[Antivirus URLs are blocked in hosts]"
if%hcount%==4 set"results=[Antivirus Domains Blocked In Hosts File] "
sc start %_slser%%nul%
echo"%errorlevel%"| findstr "577 225"%nul%&&(
@ -1233,10 +1227,9 @@ if not exist %SysPath%\%_slexe% if not exist %SysPath%\alg.exe (set "results=%re
@@ -1233,10 +1227,9 @@ if not exist %SysPath%\%_slexe% if not exist %SysPath%\alg.exe (set "results=%re
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%issues_due_to_gaming_spoofers"
echo:
@ -1511,7 +1503,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
@@ -1511,7 +1503,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
call:dk_color%Red%"Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
ifnotdefinedshowfix(
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
@ -1587,7 +1577,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
@@ -1587,7 +1577,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -1711,7 +1688,6 @@ set showfix=1
@@ -1711,7 +1688,6 @@ set showfix=1
)
ifnotdefinedshowfixifdefinedrlicfailed(
echo:
call:dk_color%Blue%"%_fixmsg%"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -1729,7 +1705,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
@@ -1729,7 +1705,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
:: 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.
ifexist"%SysPath%\wlms\wlms.exe"(
sc query wlms %nul%
if%errorlevel%NEQ 1060 (
echo Checking Eval WLMS Service [Found]
)
@ -1829,7 +1812,6 @@ if defined _sppint (
@@ -1829,7 +1812,6 @@ if defined _sppint (
echo%_sppint%| find /i "PerfOptions"%nul%&&(
call:dk_color%Red%"Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
ifnotdefinedshowfix(
echo:
call:dk_color%Blue%"%_fixmsg%"
echo:
)
@ -1864,7 +1846,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
@@ -1864,7 +1846,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
call:dk_color%Gray%"Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
ifnotdefinedshowfix(
echo:
echo"!taskinfo!"| findstr /i "Removed Not Found"%nul1%&&(
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -291,7 +296,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -291,7 +296,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -303,7 +307,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -303,7 +307,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@ -728,7 +746,7 @@ call :dk_color %Gray% "Checking Old Office With Sub License [Found. Update Of
@@ -728,7 +746,7 @@ call :dk_color %Gray% "Checking Old Office With Sub License [Found. Update Of
:: 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
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%issues_due_to_gaming_spoofers"
echo:
@ -2197,7 +2185,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
@@ -2197,7 +2185,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
call:dk_color%Red%"Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
ifnotdefinedshowfix(
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
@ -2273,7 +2259,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
@@ -2273,7 +2259,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -2397,7 +2370,6 @@ set showfix=1
@@ -2397,7 +2370,6 @@ set showfix=1
)
ifnotdefinedshowfixifdefinedrlicfailed(
echo:
call:dk_color%Blue%"%_fixmsg%"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -2415,7 +2387,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
@@ -2415,7 +2387,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
:: 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.
ifexist"%SysPath%\wlms\wlms.exe"(
sc query wlms %nul%
if%errorlevel%NEQ 1060 (
echo Checking Eval WLMS Service [Found]
)
@ -2515,7 +2494,6 @@ if defined _sppint (
@@ -2515,7 +2494,6 @@ if defined _sppint (
echo%_sppint%| find /i "PerfOptions"%nul%&&(
call:dk_color%Red%"Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
ifnotdefinedshowfix(
echo:
call:dk_color%Blue%"%_fixmsg%"
echo:
)
@ -2550,7 +2528,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
@@ -2550,7 +2528,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
call:dk_color%Gray%"Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
ifnotdefinedshowfix(
echo:
echo"!taskinfo!"| findstr /i "Removed Not Found"%nul1%&&(
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -322,7 +327,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -322,7 +327,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -334,7 +338,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -334,7 +338,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@ -2281,7 +2279,7 @@ if not defined _int (s%nil%cht%nil%asks /cre%nil%ate /tn "Activation-Run_Once" /
@@ -2281,7 +2279,7 @@ if not defined _int (s%nil%cht%nil%asks /cre%nil%ate /tn "Activation-Run_Once" /
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%issues_due_to_gaming_spoofers"
echo:
@ -3260,7 +3257,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
@@ -3260,7 +3257,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
call:dk_color%Red%"Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
ifnotdefinedshowfix(
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
@ -3336,7 +3331,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
@@ -3336,7 +3331,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -3460,7 +3442,6 @@ set showfix=1
@@ -3460,7 +3442,6 @@ set showfix=1
)
ifnotdefinedshowfixifdefinedrlicfailed(
echo:
call:dk_color%Blue%"%_fixmsg%"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -3478,7 +3459,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
@@ -3478,7 +3459,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
:: 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.
ifexist"%SysPath%\wlms\wlms.exe"(
sc query wlms %nul%
if%errorlevel%NEQ 1060 (
echo Checking Eval WLMS Service [Found]
)
@ -3578,7 +3566,6 @@ if defined _sppint (
@@ -3578,7 +3566,6 @@ if defined _sppint (
echo%_sppint%| find /i "PerfOptions"%nul%&&(
call:dk_color%Red%"Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
ifnotdefinedshowfix(
echo:
call:dk_color%Blue%"%_fixmsg%"
echo:
)
@ -3613,7 +3600,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
@@ -3613,7 +3600,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
call:dk_color%Gray%"Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
ifnotdefinedshowfix(
echo:
echo"!taskinfo!"| findstr /i "Removed Not Found"%nul1%&&(
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -349,7 +353,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -349,7 +353,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -361,7 +364,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -361,7 +364,6 @@ if /i "!tstresult2!"=="FullLanguage" (
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%issues_due_to_gaming_spoofers"
echo:
@ -3265,7 +3279,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
@@ -3265,7 +3279,6 @@ if %winbuild% LSS 9200 set "tokenstore=%Systemdrive%\Windows\ServiceProfiles\Net
call:dk_color%Red%"Checking SPP Token Folder [Not Found, Failed to Create] [%tokenstore%\]"
ifnotdefinedshowfix(
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
echo:
@ -3341,7 +3353,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
@@ -3341,7 +3353,6 @@ if !errorlevel!==3 set "permerror=Error Found In S-1-5-20 SPP"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -3465,7 +3464,6 @@ set showfix=1
@@ -3465,7 +3464,6 @@ set showfix=1
)
ifnotdefinedshowfixifdefinedrlicfailed(
echo:
call:dk_color%Blue%"%_fixmsg%"
call:dk_color%Blue%"If activation still fails then run Fix WPA Registry option."
echo:
@ -3483,7 +3481,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
@@ -3483,7 +3481,6 @@ if not defined notwinact if exist "%SystemRoot%\Servicing\Packages\Microsoft-Win
:: 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.
ifexist"%SysPath%\wlms\wlms.exe"(
sc query wlms %nul%
if%errorlevel%NEQ 1060 (
echo Checking Eval WLMS Service [Found]
)
@ -3583,7 +3588,6 @@ if defined _sppint (
@@ -3583,7 +3588,6 @@ if defined _sppint (
echo%_sppint%| find /i "PerfOptions"%nul%&&(
call:dk_color%Red%"Checking SPP Interference In IFEO [%_sppint% - System might deactivate later]"
ifnotdefinedshowfix(
echo:
call:dk_color%Blue%"%_fixmsg%"
echo:
)
@ -3618,7 +3622,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
@@ -3618,7 +3622,6 @@ if "!taskinfo!"=="" set "taskinfo=Not Found"
call:dk_color%Gray%"Checking SvcRestartTask Status [!taskinfo!. System might deactivate later.]"
ifnotdefinedshowfix(
echo:
echo"!taskinfo!"| findstr /i "Removed Not Found"%nul1%&&(
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
@ -8949,7 +8958,13 @@ if (-not $env:resetstuff) {
@@ -8949,7 +8958,13 @@ if (-not $env:resetstuff) {
}
else {
if ($env:tsmethod-eq"KMS4k"){
Write-Host "[$prodName] is activated till $([DateTime]::Now.AddMinutes($GracePeriodStatus).ToString('yyyy-MM-dd HH:mm:ss')) with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
if ($build-ge26100){
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 a remaining activation period of 180 days in Settings." -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
}
}
else {
Write-Host "[$prodName] is permanently activated with $env:tsmethod." -ForegroundColor White -BackgroundColor DarkGreen
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -236,7 +233,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -236,7 +233,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -248,7 +244,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -248,7 +244,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@ -621,7 +621,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li
@@ -621,7 +621,7 @@ if defined _notfound call :dk_color %Gray% "Office !_notfound! is not in this li
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -241,7 +246,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -241,7 +246,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -253,7 +257,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -253,7 +257,6 @@ if /i "!tstresult2!"=="FullLanguage" (
call:dk_color%Blue%"To fix this issue, activate Windows from the main menu."
gotodk_done
)
@ -454,7 +453,6 @@ if not defined osedition %chkedi% do if not errorlevel 1 (call set "osedition=%%
@@ -454,7 +453,6 @@ if not defined osedition %chkedi% do if not errorlevel 1 (call set "osedition=%%
ifnotdefinedosedition(
%eline%
echo Failed to detect OS edition, aborting...
echo:
call:dk_color%Blue%"To fix this issue, activate Windows from the main menu."
gotodk_done
)
@ -478,7 +476,7 @@ set _ntarget=
@@ -478,7 +476,7 @@ set _ntarget=
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodone2
@ -252,7 +257,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -252,7 +257,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodone2
@ -264,7 +268,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -264,7 +268,6 @@ if /i "!tstresult2!"=="FullLanguage" (
echo Windows Powershell is needed for MAS but it seems to be replaced with Powershell core. Aborting...
echo:
setfixes=%fixes%%mas%in-place_repair_upgrade
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%in-place_repair_upgrade"
gotodk_done
@ -253,7 +258,6 @@ REM check for Mal-ware that may cause issues with Powershell
@@ -253,7 +258,6 @@ REM check for Mal-ware that may cause issues with Powershell
for /r "%ProgramFiles%\"%%f in(secureboot.exe)doifexist"%%f"(
echo"%%f"
echo Mal%blank%ware found, PowerShell is not working properly.
echo:
setfixes=%fixes%%mas%remove_mal%w%ware
call:dk_color2%Blue%"Check this webpage for help - "%_Yellow%"%mas%remove_mal%w%ware"
gotodk_done
@ -265,7 +269,6 @@ if /i "!tstresult2!"=="FullLanguage" (
@@ -265,7 +269,6 @@ if /i "!tstresult2!"=="FullLanguage" (
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=%%#"
@ -945,8 +981,8 @@ for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\16.0\Common\InstallRoot /v P
@@ -945,8 +981,8 @@ for /f "skip=2 tokens=2*" %%a in ('"reg query %_68%\16.0\Common\InstallRoot /v P
<palign="center">Open-source Windows and Office activator featuring HWID, Ohook, TSforge, KMS38, and Online KMS activation methods, along with advanced troubleshooting.</p>
<palign="center">Open-source Windows and Office activator featuring HWID, Ohook, TSforge, and Online KMS activation methods, along with advanced troubleshooting.</p>
<hr>
## How to Activate Windows / Office / Extended Updates (ESU)?
## How to Activate Windows / Office / Extended Security Updates (ESU)?
### Method 1 - PowerShell ❤️
1. **Open PowerShell**
Click the **Start Menu**, type `PowerShell`, then open it.
1. Click the **Start Menu**, type `PowerShell`, and open it.
2. **Copy and paste the code below, then press enter.**
- For **Windows 8, 10, 11**: 📌
2. Copy and paste the code below and press **Enter.**
- **Script not launching❓Use the below-listed Method 2.**
- **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.
4. **Done!**
3. In the menu that appears, type the number corresponding to one of the **Green** options.
---
### 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).
2. Run the file named `MAS_AIO.cmd`.
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)
2. Run the `MAS_AIO.cmd` file.
3. In the menu that appears, type the number corresponding to one of the **Green** options.
---
> [!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.
> - **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).
---
> - 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).
> [!NOTE]
>
> - 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.
> - Be cautious, as some spread malware disguised as MAS by using different URLs in the IRM command.
> - 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 is trustworthy when manually downloading files.
> - Be cautious of third parties spreading malware disguised as MAS by altering the URL in the PowerShell command.