Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Get-UICulture

Updated: October 17, 2013

Applies To: Windows PowerShell 4.0

Get-UICulture

Gets the current user interface (UI) culture settings in the operating system.

Syntax


Get-UICulture [ <CommonParameters>]




Detailed Description

The Get-UICulture cmdlet gets information about the current UI culture settings for Windows. The UI culture determines which text strings are used for user interface elements, such as menus and messages.

You can also use the Get-Culture cmdlet, which gets the current culture on the system. The culture determines the display format of items such as numbers, currency, and dates.

Parameters

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

  • None

    You cannot pipe input to this cmdlet.


Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.Globalization.CultureInfo, Microsoft.PowerShell.VistaCultureInfo

    Get-UICulture returns an object that represents the current UI culture. In Windows PowerShell 3.0, it returns a CultureInfo object. In Windows PowerShell 2.0, it returns a VistaCultureInfo object.


Notes

  • You can also use the $PsCulture and $PsUICulture variables. The $PsCulture variable stores the name of the current culture, and the $PsUICulture variable stores the name of the current UI culture.

Examples

-------------------------- EXAMPLE 1 --------------------------

This command gets the current UI culture information.


PS C:\> get-uiculture

-------------------------- EXAMPLE 2 --------------------------

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


PS C:\> get-uiculture | format-list *

-------------------------- EXAMPLE 3 --------------------------

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".


PS C:\> (get-uiculture).calendar

-------------------------- EXAMPLE 4 --------------------------

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".


PS C:\> (get-uiculture).datetimeformat.shortdatepattern



Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.