Get-WinSystemLocale
Applies To: Windows 8, Windows Server 2012
Get-WinSystemLocale
Gets the System-locale setting (that is, the language for non-Unicode programs) for the current computer.
Syntax
Get-WinSystemLocale [ <CommonParameters>]
Detailed Description
The Get-WinSystemLocale cmdlet returns the current value of the System-locale setting. The System-locale setting determines which code pages (ANSI, DOS, and Macintosh) the system uses by default.
Parameters
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Outputs
The output type is the type of the objects that the cmdlet emits.
CultureInfo
An object that identifies the current computer's system locale. For more information about the CultureInfo object, see CultureInfo Class.
Examples
Example 1
This command gets and displays the System-locale setting for the current computer.
PS C:\> GET-WinSystemLocale
LCID Name DisplayName
---- ---- -----------
1033 en-US English (United States)
PS C:\>