This is the most effective . The IconCache.db file is hidden deep within your user profile. Deleting it forces Windows to build a fresh copy on the next reboot.
Before installing third-party software, ensure you have configured Windows 10 to minimize movement. icon restore windows 10 64 bit
If only media files show generic icons:
In the File Explorer window, go to the tab and check Hidden items . This is the most effective
For advanced users, this PowerShell command restores pinned taskbar icons: icon restore windows 10 64 bit
Type exit and press Enter.