GetKeyboardLayout.ps1

      No Comments on GetKeyboardLayout.ps1

[string]$HiveKey = “HKCU:\Keyboard Layout\Preload”
$Values=(Get-Item $HiveKey).GetValueNames() | Sort -Descending
ForEach ($Value in $Values)
{
Write-Host SetLocale (Get-ItemProperty $HiveKey).($value)
}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.