This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage
# Check current keyboard setting
Get-ItemProperty 'HKCU:\Keyboard Layout\Preload' -Name 1
# Set layout
Set-ItemProperty 'HKCU:\Keyboard Layout\Preload' -Name 1 -Value 00000407
# Values:
# German - 00000407
# English - 00000409
# Restart Computer
Restart-Computer