optimized-azerty-win icon indicating copy to clipboard operation
optimized-azerty-win copied to clipboard

Installer ce clavier en ligne de commande

Open xDEADC0DE opened this issue 1 year ago • 2 comments

C’est peut être un peu hors-sujet, mais je cherche comment installer et activer automatiquement ce clavier sur une nouvelle installation de Windows (pour une machine virtuelle)

Est-ce qu’il y a une commande PowerShell pour activer le clavier Français - AZERTY NF Z71-300 ?

xDEADC0DE avatar Feb 19 '24 15:02 xDEADC0DE

J’ai trouvé ! Après avoir installé le driver, on peut activer la variante « AZERTY amélioré » en faisant (dans powershell) :

$Lang = New-WinUserLanguageList fr-FR
$Lang[0].InputMethodTips.Clear()
$Lang[0].InputMethodTips.Add('040C:A001040C')
Set-WinUserLanguageList -Force -LanguageList $Lang

(adapté de la réponse à la page https://stackoverflow.com/questions/60668400/changing-keyboard-layout-in-powershell-for-multiple-languages/60669214#60669214 )

(la commande Set-WinUserLanguageList -Force -LanguageList fr-FR fonctionne pour changer la langue mais utilise l’ancien clavier AZERTY)

xDEADC0DE avatar Feb 20 '24 11:02 xDEADC0DE

@xDEADC0DE merci beaucoup ! Ça me semble très utile.

springcomp avatar Feb 22 '24 09:02 springcomp