NAME
Get-UICulture
SYNOPSIS
Gets the current UI culture settings in the operating system.SYNTAX
Get-UICulture [
] DESCRIPTION
The Get-UICulture cmdlet gets information about the current user interface (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
This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216). INPUTS
None You cannot pipe input to this cmdlet.OUTPUTS
System.Globalization.CultureInfo, Microsoft.PowerShell.VistaCultureInfoGet-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.
*
Example 1: Get the UI culture
PS C:\>Get-UICulture
This command gets the current UI culture information.Example 2: Get the UI culture and format the results
PS C:\>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 the value of the Calendar property
PS C:\>(Get-UICulture).Calendar
This command displays the current values for the Calendar property of the current UI culture. Calendar is just oneproperty of UI culture. To see all of the properties, type `Get-UICulture | Get-Member`.
Example 4: Get the short date pattern
PS C:\>(Get-UICulture).DateTimeFormat.ShortDatePattern
This command displays the short date pattern for the current UI culture. To see all of the subproperties of theDateTimeFormat property of the UI culture, type `(Get-UICulture).DateTimeFormat | gm`.
RELATED LINKS
Online Version: http://go.microsoft.com/fwlink/?LinkId=821806