編集

次の方法で共有


Get-WinUserLanguageList

Gets the language list for the current user account.

Syntax

Get-WinUserLanguageList []

Description

The Get-WinUserLanguageList cmdlet returns the current user language settings. These settings include input method, spelling setting, text prediction setting, and handwriting input mode. For more information, see CultureInfo Class and Manage the input and display language settings in Windows 10.

Examples

Example 1: Get language list for the current account

PS C:\> Get-WinUserLanguageList
LanguageTag     : en-US
Autonym         : English (United States)
EnglishName     : English (United States)
LocalizedName   : English (United States)
ScriptName      : Latin
InputMethodTips : {0409:00000409}
Handwriting     : False
LanguageTag     : fr-FR
Autonym         : français (France)
EnglishName     : French (France)
LocalizedName   : French (France)
ScriptName      : Latin
InputMethodTips : {040c:0000040c}
Handwriting     : False

This command returns the language list for the current user account, BCP-47 tags, and the corresponding display name.

Example 2: Display input methods

PS C:\> (Get-WinUserLanguageList)[0].InputMethodTips
0409:00000409
0409:00010409

This command returns the list of currently enabled input methods as a TIP string.

Example 3: Display an autonym property

PS C:\> (Get-WinUserLanguageList)[0].autonym
English (United States)

This command returns the autonym property of the first item in the user language list.

Outputs

System.Collections.Generic.List<Microsoft.InternationalSettings.Commands.WinUserLanguage>

This cmdlet returns a list of WinUserLanguage objects that contain one or more languages and associated properties from the current user account's language list. For information about the Generic.List object, see List(Of T) Class.

The generic list object supports the following methods:

  • Add("LanguageTag")
  • Insert(index, "LanguageTag")
  • Remove(Index)

The output language object contains the following properties:

  • LanguageTag (READ). A standard BCP-47 language tag that is used to identify languages. For more information, see the Internet Engineering Task Force (IETF) BCP 47 RFC.
  • Autonym (LP database) (READ). The name of the language in the language itself.
  • EnglishName (LP database) (READ). The name of the language in English.
  • LocalizedName (LP database) (READ). The name of the language in the current Windows display language.
  • ScriptName (LP database) (READ). The writing system of the language.
  • InputMethodTips (READ/WRITE). A list of input method Tablet Input Panel (TIP) strings that are enabled for this language. The enabled Input methods are listed in the format Language ID: Keyboard layout ID.
  • Handwriting (READ/WRITE). This value is either 0 (freehand) or 1 (write each character separately).