Hello Friends,
We observed sometimes, we are
facing issues while updating the country or region settings in windows 10. Thus,
it is important to keep the correct settings. If you can’t change country or
region, it might be for one of these reasons:
You changed the country or
region within the last three months.
Your account is suspended. For
example, the credit card on a subscription has expired, or your
subscription has a balance due.
You’re legally a minor in your
current country or region and won’t be a minor in the new region, or
vice-versa.
For more details about country
or region settings in Windows 10, refer to the below link.
here is the script to achieve
the goal.
<#
.SYNOPSIS
.DESCRIPTION
.NOTES
=============================================================================================================================================
Created
with: Windows PowerShell ISE
Created
on: Tuesday,
January 25, 2022 12:08:48 PM
Created
by: Dashrath Chate
Organization: Organization
Name
=============================================================================================================================================
#>
$tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
$tsenv.Value("OSDWindowsSettingsUILanguage") = $language
reg load HKU\1 "C:\Users\Default\NTUSER.DAT"
If ($language -eq "En-US")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value US -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 244 -Force -Confirm:$false}
If ($language -eq "en-gb")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value GB -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 242 -Force -Confirm:$false
}
If ($language -eq "fr-fr")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value FR -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 84 -Force -Confirm:$false
}
If ($language -eq "es-es")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value ES -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 217 -Force -Confirm:$false
}
If ($language -eq "pl-pl")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value PL -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 191 -Force -Confirm:$false
}
If ($language -eq "pt-pt")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value PT -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 193 -Force -Confirm:$false
}
If ($language -eq "tr-tr")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value TR -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 235 -Force -Confirm:$false
}
If ($language -eq "zh-cn")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value CN -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 45 -Force -Confirm:$false
}
If ($language -eq "it-it")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value IT -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 118 -Force -Confirm:$false
}
If ($language -eq "ru-ru")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value RU -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 203 -Force -Confirm:$false
}
If ($language -eq "th-th")
{
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Name -Value TH -Force -Confirm:$false
Set-ItemProperty -Path '1:\Control Panel\International\Geo\' -Name Nation -Value 227 -Force -Confirm:$false
}
reg unload HKU\1
No comments:
Post a Comment
Leave your valuable words here for improve better.