Skip to content

Instantly share code, notes, and snippets.

@Cierra-Runis
Created June 5, 2025 22:09
Show Gist options
  • Save Cierra-Runis/48fb21c35380b6df0f9feb1d9d7fce17 to your computer and use it in GitHub Desktop.
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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment