mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-08-28 03:13:16 +08:00
Compare commits
2 Commits
c817ae8bd9
...
64a726202c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
64a726202c | ||
![]() |
c3e70173e4 |
@ -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 (US CN IN BR DE JP GB FR MX ID IT PK TR KR CA ES AU NG VN PL PH NL EG AR TH CO SA TW MY CL) 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]"
|
||||
)
|
||||
|
@ -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 (US CN IN BR DE JP GB FR MX ID IT PK TR KR CA ES AU NG VN PL PH NL EG AR TH CO SA TW MY CL) 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]"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user