Get-WinSystemLocale

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

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: Get the system-locale setting for the current computer

This command gets and displays the system-locale setting for the current computer.

PS C:\> Get-WinSystemLocale

Set-WinSystemLocale

Configurable Language and Cultural Settings