From c3e70173e4d0503f8e35d0ed5e98d79a640271c0 Mon Sep 17 00:00:00 2001 From: WindowsAddict Date: Sat, 12 Jul 2025 03:53:16 +0530 Subject: [PATCH] Skip changing region in top countries --- MAS/All-In-One-Version-KL/MAS_AIO.cmd | 9 ++++++--- .../Activators/HWID_Activation.cmd | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/MAS/All-In-One-Version-KL/MAS_AIO.cmd b/MAS/All-In-One-Version-KL/MAS_AIO.cmd index d792170..6c2e0a6 100644 --- a/MAS/All-In-One-Version-KL/MAS_AIO.cmd +++ b/MAS/All-In-One-Version-KL/MAS_AIO.cmd @@ -859,12 +859,15 @@ call :dk_inskey "[%key%]" for /f "skip=2 tokens=2*" %%a in ('reg query "HKCU\Control Panel\International\Geo" /v Name %nul6%') do set "name=%%b" for /f "skip=2 tokens=2*" %%a in ('reg query "HKCU\Control Panel\International\Geo" /v Nation %nul6%') do set "nation=%%b" -set regionchange= -if not "%name%"=="US" ( +:: Skip changing region in top countries + set regionchange=1 +for %%# in (IN CN US ID PK NG BR BD RU MX ET JP PH EG CD VN TR DE TH GB FR IT KR ES CA SA AU NL CH) do if /i "%name%"=="%%#" set regionchange= + +if defined regionchange ( %psc% "Set-WinHomeLocation -GeoId 244" %nul% if !errorlevel! EQU 0 ( -echo Changing Windows Region To USA [Successful] +echo Changing Windows Region To USA [Successful] [Script will change it back] ) else ( call :dk_color %Red% "Changing Windows Region To USA [Failed]" ) diff --git a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd index 5f70d82..067df5e 100644 --- a/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd +++ b/MAS/Separate-Files-Version/Activators/HWID_Activation.cmd @@ -569,12 +569,15 @@ call :dk_inskey "[%key%]" for /f "skip=2 tokens=2*" %%a in ('reg query "HKCU\Control Panel\International\Geo" /v Name %nul6%') do set "name=%%b" for /f "skip=2 tokens=2*" %%a in ('reg query "HKCU\Control Panel\International\Geo" /v Nation %nul6%') do set "nation=%%b" -set regionchange= -if not "%name%"=="US" ( +:: Skip changing region in top countries + set regionchange=1 +for %%# in (IN CN US ID PK NG BR BD RU MX ET JP PH EG CD VN TR DE TH GB FR IT KR ES CA SA AU NL CH) do if /i "%name%"=="%%#" set regionchange= + +if defined regionchange ( %psc% "Set-WinHomeLocation -GeoId 244" %nul% if !errorlevel! EQU 0 ( -echo Changing Windows Region To USA [Successful] +echo Changing Windows Region To USA [Successful] [Script will change it back] ) else ( call :dk_color %Red% "Changing Windows Region To USA [Failed]" )