Where does Windows store icon positions?

Solution 1:

They are located in the registry under HKCU\Software\Microsoft\Windows\Shell\Bags\1\Desktop.

The key that should interest you is the ItemPosXXXxXXX(where XXX is your resolution).

enter image description here

The relevant values are Mode, LogicalViewMode, IconSize.

You can combine them as shown in the table:

Style       Mode    LogicalViewMode  IconSize
X-Lg Icons  5       3                0x100
Lg Icons    5       3                0x60
Med Icons   5       3                0x30
Sm Icons    2       3                0x10
List        3       3                0x10
Details     4       1                0x10
Tiles       6       2                0x30

Update

Fortunately found an article that can help you. See: Windows Shellbag Forensics.

Solution 2:

The icon positions are stored in the registry. Unfortunately I don't have the exact location.

You could use this link to fix the position of the icons: http://www.howtogeek.com/howto/windows-vista/save-and-restore-desktop-icon-layout-in-windows-vista/

It adds two entries to the context menu when you click your desktop: Save Desktop Icon Layout and Restore Desktop Icon Layout.

You can save the current position of the icons. If something messes up the order you can restore them to the saved location.