Solved

Powershell script to change keyboard layout

Posted on 2014-01-30
2
5,413 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Synchronize a new Active Directory domain with an existing Office 365 tenant
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now