?
Solved

Powershell script to change keyboard layout

Posted on 2014-01-30
2
Medium Priority
?
6,402 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
Raheman M. Abdul earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Windows 10 came with  a lot of built in applications, Some organisations leave them there, some will control them using GPO's. This Article is useful for those who do not want to have any applications in their image (example:me).
A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

765 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