How to change windows language through powershell

Configurare noua (How To)

Situatie

Changing the Windows display language through PowerShell involves modifying the system’s regional and language settings.

Solutie

# Define the new language code (e.g., ‘en-US’ for English – United States)
$newLanguageCode = ‘en-US’

# Set the new language
Set-WinSystemLocale -SystemLocale $newLanguageCode
Set-WinUserLocale -Language $newLanguageCode -Force
Set-WinHomeLocation -GeoId (Get-WinHomeLocation).GeoId
Set-WinSystemLocale -SystemLocale $newLanguageCode

# Display the current language settings
Get-WinSystemLocale
Get-WinUserLocale
Get-WinHomeLocation

  • This script sets the system locale, user locale, and home location to the specified language code (‘en-US’ in this example). It then displays the current language settings to verify the change.

Make sure to replace ‘en-US’ with the language code corresponding to the language you want to set. You can find a list of language codes using the Get-WinSystemLocale cmdlet.

Note: Changing the system language may require administrative privileges. Additionally, changing the language might not take effect until you log out and log back in or restart your computer. Be aware that changing the language may also affect certain applications and settings. Ensure that you are aware of the consequences before making such changes.

Tip solutie

Permanent

Voteaza

(1 din 8 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?