#PSTip Setting keyboard layout in Windows 8 and Server 2012

Have you ever wondered how you can set the keyboard layout using PowerShell? I recently came across a situation where a set of virtual machines I deployed from a template had a different keyboard layout than what I intend to use. Fortunately, starting with Windows Server 2012 and Windows 8, there is a built-in cmdlet to do this.

The Set-WinUserLanguageList cmdlet can be used to set the keyboard layout. This cmdlet is available in the International module.

Set-WinUserLanguageList -LanguageList en-US

The Get-WinUserLanguageList cmdlet gets the list of languages for the current user.

Share on: