Quantcast
Channel: Rob V IT
Viewing all articles
Browse latest Browse all 64

Disable insert key PowerShell

$
0
0

I hate the annoying insert key on my keyboard. Therefore, I found a way to disable the key within the Windows registry. It is very easy to insert this key with PowerShell so you can automate this when you are deploying a desktop for example.

Add this reg key to the registery, add to notepad and save as .reg file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,00,00,52,e0,00,00,00,00

This PowerShell script disable the Insert key, tested with Windows 10:

#Disable insert key with PowerShell
$Bkey = "00,00,00,00,00,00,00,00,02,00,00,00,00,00,52,e0,00,00,00,00"
$Path   = 'HKLM:\SYSTEM\CurrentControlSet\Control\Keyboard Layout'
$Name  = "Scancode Map"
$hex = $Bkey.Split(',') | % { "0x$_"}

#Insert key in registry PowerShell
New-ItemProperty -Path $Path -Name $Name -PropertyType Binary -Value ([byte[]]$hex)

 

The post Disable insert key PowerShell appeared first on Rob V IT.


Viewing all articles
Browse latest Browse all 64

Trending Articles