Get-WinSystemLocale

Get the System-locale setting for the current computer.

Syntax
      Get-WinSystemLocale [CommonParameters]
   

This cmdlet returns the current system locale setting.

The system locale setting also determines which code pages (ANSI, DOS, and Macintosh) the system uses by default. Code pages only affect non-unicode legacy applications.

Examples

Get the system locale ID, short Name and Display Name:

PS C:\> Get-WinSystemLocale
 LCID      Name      Display Name
 ----      ----      ------------
 1033      en-US     English (United States)

Get the system locale plus OEM Code page and ANSI code page:

PS C:\> Get-WinSystemLocale | Select-Object Name, DisplayName,
@{ n='OEMCP'; e={ $_.TextInfo.OemCodePage } },
@{ n='ACP'; e={ $_.TextInfo.AnsiCodePage } }

“ The diversity of Europe is its strength. But for a single currency to work, over a region with enormous economic and political diversity, is not easy” ~ Joseph Stiglitz

Related PowerShell Cmdlets

[Console]::OutputEncoding - Convert text to Unicode.
[Console]::OutputEncoding.WindowsCodePage - Display the ANSI code page.
Windows CMD: CHCP - Change OEM code page.


 
Copyright © 1999-2025 windevcluster.com
Some rights reserved