Get-UICulture

 

SYNOPSIS

Gets information about the current user interface culture for Windows PowerShell.

 

SYNTAX

Get-UICulture [<CommonParameters>]

 

 

DETAILED DESCRIPTION

The Get-UICulture cmdlet gets information about the current user interface culture for Windows PowerShell and creates a CultureInfo object to store it. The UI culture includes settings for culture-specific information, such as language, sublanguage, time and date format, and cultural conventions. The UI culture differs from a culture in that the properties of a UI culture can change with each application.

 

PARAMETERS

 

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable. For more information, type, "get-help about_commonparameters".

 

RETURN TYPE

System.Globalization.CultureInfo object

 

NOTES                                                                                                                                                                   

 

For more information, type "Get-Help Get-UICulture -detailed". For technical information, type "Get-Help Get-UICulture -full".

 

When specifying multiple values for a parameter, use commas to separate the values. For example, "<parameter-name> <value1>, <value2>".

 

In types.xml, the DefaultPropertySet for System.Globalization.CultureInfo should include the LCID, Name, and DisplayName properties.

 

EXAMPLE 1

 

get-uiculture

 

This command gets the current UI culture information.

 

EXAMPLE 2

 

get-uiculture | format-list *

 

This command displays the values of all of the properties of the current UI culture in a list.

 

EXAMPLE 3

 

(get-uiculture).calendar

 

This command displays the current values for the Calendar property of the current UI culture. Calendar is just one property of UI culture. To see all of the properties, type "Get-UICulture | Get-Member".

 

EXAMPLE 4

 

(get-uiculture).datetimeformat.shortdatepattern

 

This command displays the short date pattern for the current UI culture. To see all of the subproperties of the DateTimeFormat property of the UI culture, type "(get-uiculture).datetimeformat | gm".

 

RELATED LINKS

Get-Culture