2

#PSTip How to configure International settings in PowerShell 3.0

Note: This tip requires PowerShell 3.0 or above.

Windows 8 and Windows Server 2012 ships with a new module worth exploring: the International module. You can use the module cmdlets to control the language that is used for various elements of the user interface (UI). Since the early days of PowerShell, we could get the current culture with the Get-Culture cmdlet but we couldn’t set it. The International module enables us to set the culture with the Set-Culture cmdlet.

The Set-Culture cmdlet enables you to quickly set the user culture for the current user account. The information includes the names for the culture, the writing system, the calendar, and formatting for dates and sort strings.

Set-Culture -CultureInfo he-IL

Here’s a list of the International module commands:

PS> Get-Command -Module International

CommandType     Name                                               ModuleName
-----------     ----                                               ----------
Cmdlet          Get-WinAcceptLanguageFromLanguageListOptOut        International
Cmdlet          Get-WinCultureFromLanguageListOptOut               International
Cmdlet          Get-WinDefaultInputMethodOverride                  International
Cmdlet          Get-WinHomeLocation                                International
Cmdlet          Get-WinLanguageBarOption                           International
Cmdlet          Get-WinSystemLocale                                International
Cmdlet          Get-WinUILanguageOverride                          International
Cmdlet          Get-WinUserLanguageList                            International
Cmdlet          New-WinUserLanguageList                            International
Cmdlet          Set-Culture                                        International
Cmdlet          Set-WinAcceptLanguageFromLanguageListOptOut        International
Cmdlet          Set-WinCultureFromLanguageListOptOut               International
Cmdlet          Set-WinDefaultInputMethodOverride                  International
Cmdlet          Set-WinHomeLocation                                International
Cmdlet          Set-WinLanguageBarOption                           International
Cmdlet          Set-WinSystemLocale                                International
Cmdlet          Set-WinUILanguageOverride                          International
Cmdlet          Set-WinUserLanguageList                            International
Filed in: Columns, Tips and Tricks Tags: , , , ,

2 Responses to "#PSTip How to configure International settings in PowerShell 3.0"

Leave a Reply

Submit Comment

© 2016 PowerShell Magazine. All rights reserved. XHTML / CSS Valid.
Proudly designed by Theme Junkie.
%d bloggers like this: