Editar

Compartilhar via


Get-WinSystemLocale

Gets the System-locale setting for the current computer.

Syntax

Get-WinSystemLocale []

Description

The Get-WinSystemLocale cmdlet returns the current value of the System-locale setting. The System-locale setting determines which code pages, which include ANSI, DOS, and Macintosh, the computer uses by default.

Examples

Example 1: Get the system locale

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

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

Outputs

CultureInfo

This cmdlet returns the system locale of the current computer. For more information about the CultureInfo object, see CultureInfo Class.