Powershell script to change keyboard layout

Posted on 2014-01-30
Medium Priority
Last Modified: 2014-01-31

I am wondering if you can help me.

I am trying to build a powershell script which I can change the keyboard layout to english united kingdom india (0809:00004009).

My environment I am using is powershell 3 and Windows Server 2012.

I have looked at the technet web page.


But its a bit confusing how to set the setting.

$language = New-WinUserLanguageList en-gb
$language.Add("0809:00004009") (English India Keyboard)
Set-WinUserLanguageList $language

LanguageTag     : en-GB
Autonym         : English (United Kingdom)
EnglishName     : English
LocalizedName   : English (United Kingdom)
ScriptName      : Latin script
InputMethodTips : {0809:00000809} *Set this to 0809:00004009
Spellchecking   : True
Handwriting     : False

I tried the following :

$a=New-WinUserLanguageList en-GB

set-winuserlanguagelist $a

WARNING: The list you attempted to set contained invalid languages which were ignored

Also this Set-WinDefaultInputMethodOverride "0809:00004009" , but it doesn't change it.
Question by:Nightlife2004
LVL 19

Accepted Solution

Raheman M. Abdul earned 2000 total points
ID: 39823469
Try this:

Set-WinUserLanguageList en-IN

Author Closing Comment

ID: 39825019
Thanks it seems to be working now.

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
The PowerShell Core 6.0 of .NET release is just the beginning. The upcoming PowerShell Core 6.1 would have artificial intelligence and internet of things capabilities. So many things to look forward to in the upcoming release.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question