- at a command prompt, change to the %SystemRoot% folder
- remove the hidden attribute from the file:
type attrib -h shelliconcache and press ENTER. - delete the file:
type del shelliconcache and press ENTER. - logoff and backon and the default icons should be restored.
This tip applies to all versions of Windows including Windows NT, Windows 2000, and Windows XP.
If the default icons were deleted from a Windows NT desktop, they can be recreated from the registry. See Q151723