Windows – Programmatically change keyboard to Dvorak

dvorakwindows

Does anyone know the API call I can use to change the keyboard layout on a windows machine to Dvorak? Doing it through the UI is easy but I'd like to have a script that I can run on new VM's to automate the process.

Best Answer

I may be four years late to the party, but did you ever find this:

Intlcfg Command-Line Options

I don't have Windows Vista (very bad habit, Windows), but looking at this page and also at Available Language Packs and Default Input Locales I reckon the command you want might well be:

intlcfg.exe -inputlocale:0409:00010409

for English (United States) language with United States Dvorak input locale.