Skip to content

Instantly share code, notes, and snippets.

View Cierra-Runis's full-sized avatar
😎
很酷,不编程

Cierra-Runis Cierra-Runis

😎
很酷,不编程
View GitHub Profile
New-Item "HKCU:\Control Panel\Input Method\Hot Keys\00000010" -Force | Out-Null
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000010" "Key Modifiers" ([byte[]](0x00,0xC0,0x00,0x00))
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000010" "Virtual Key" ([byte[]](0xFF,0x00,0x00,0x00))
New-Item "HKCU:\Control Panel\Input Method\Hot Keys\00000070" -Force | Out-Null
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000070" "Key Modifiers" ([byte[]](0x00,0xC0,0x00,0x00))
Set-ItemProperty "HKCU:\Control Panel\Input Method\Hot Keys\00000070" "Virtual Key" ([byte[]](0xFF,0x00,0x00,0x00))
New-Item "Registry::HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010" -Force | Out-Null
Set-ItemProperty "Registry::HKEY_USERS\.DEFAULT\Control Panel\Input Method\Hot Keys\00000010" "Key Modifiers" ([byte[]](0x02,0xC0,0x00,0x00))
@Cierra-Runis
Cierra-Runis / Remove-Shortcut.ps1
Last active March 30, 2026 02:53
Remove or Customize Windows Shortcut Arrow Icon
if (!(Test-Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons')) {
New-Item -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Force
}
New-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons' -Name 29 -Value "$env:SystemRoot\System32\imageres.dll,197" -PropertyType String -Force
Stop-Process -Name explorer -Force ; $f="$env:USERPROFILE\AppData\Local\IconCache.db"
if (Test-Path $f) {
attrib -s -r -h $f