Posted On November 11, 2020

How to Enforce Keyboard Layout Consistency for Remote Desktop

kimconnect 0 comments
blog.KimConnect.com >> Codes >> How to Enforce Keyboard Layout Consistency for Remote Desktop
# The following function will allow the RDP session to store the user keyboard language preference as stored in the session profile.
# This bypasses the default layout provided by the Terminal Server client.
# In other words, the default keyboard layout and input language can be set by the user and saved in that profile - a log-off is required after changing this setting. All later user logons will use the default keyboard layout and input language from this profile.
# This saves users the efforts of having to manually (shitft-alt) switch the layout after each login.

function setRdpKeyboardPerProfile{
	$keyboardRegKey='REGISTRY::HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
	$keyName='IgnoreRemoteKeyboardLayout'
	$keyValue=1
	Set-ItemProperty -Path $keyboardRegKey -Name $keyName -Value $keyValue -Type DWORD -Force
}
setRdpKeyboardPerProfile

Leave a Reply

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

Related Post

Basic CSS: Use CSS Selectors to Style Elements

<h2 style="color: red">CatPhotoApp</h2><main><p>Click here to view more <a href="#">cat photos</a>.</p><a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange…

Check Servers NSLookup of a Listener to Match Active Node IP

$servers="SQL01","SQL02","SQL03","SQL04" $listener="halistener01" $activeNode="10.10.10.5" # Dynamic Credential method 1 $who = whoami if ($who.Substring($who.length-2, 2)="-admin"){$username=$who;} else…

PowerShell: Error While Invoking Functions Containing 2 Parameters

Issue: This function will raise an error when being invoked: function localFunc ($x, $y){ begin{}…