Skip to content

Instantly share code, notes, and snippets.

@Cierra-Runis
Last active March 30, 2026 02:53
Show Gist options
  • Select an option

  • Save Cierra-Runis/48fb21c35380b6df0f9feb1d9d7fce17 to your computer and use it in GitHub Desktop.

Select an option

Save Cierra-Runis/48fb21c35380b6df0f9feb1d9d7fce17 to your computer and use it in GitHub Desktop.
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
Remove-Item $f -Force
}
Start-Process explorer

Comments are disabled for this gist.