Solved

Powershell script to change keyboard layout

Posted on 2014-01-30
2
5,660 Views
Last Modified: 2014-01-31
Hello,

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.

http://technet.microsoft.com/en-us/library/hh852168.aspx

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 :



$india="0809:00004009"
$a=New-WinUserLanguageList en-GB
$a.add($india)

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.
0
Comment
Question by:Nightlife2004
2 Comments
 
LVL 18

Accepted Solution

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

Set-WinUserLanguageList en-IN
0
 

Author Closing Comment

by:Nightlife2004
ID: 39825019
Thanks it seems to be working now.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Exchange Powershell Help 3 34
Exchange powershell help 2 30
PowerShell script to remove string in xml file 8 20
Text file manipulation 5 10
Utilizing an array to gracefully append to a list of EmailAddresses
Synchronize a new Active Directory domain with an existing Office 365 tenant
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
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…

773 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