When testing various display resolutions or after completing a remote desktop session, the desktop icons may go out of order. Another case is that when you accidentally use the CTRL+ Scroll button (mouse) on your Windows Vista desktop, the Desktop icon size changes. But reverting back to the original icon size does not restore the custom icon positions on your desktop. In these cases, you need to revert back the custom icon positions manually.
The Layout.dll shell extension from Microsoft Windows NT Resource Kit tools, can be used to Save and Restore Desktop icon layout. Good news is that the extension works well under Windows 2000, Windows XP and even in Windows Vista.
Installing the Layout.dll shell extension
- To add the shell extension, download layout.zip and save it to a folder.
- Unzip the archive and extract the files to your Desktop.
- Move the file LAYOUT.DLL to the Windows\System32 folder.
- Right-click LAYOUT.REG and choose Merge. Click Yes when asked for confirmation.
Note: Store the file layout.zip in a safe location if you need to uninstall the shell extension at a later time. You may use the file Uninstall.reg (included in layout.zip) to remove the entries from right-click menu.
Saving and Restoring desktop icon layout
After installing the shell extension, you’ll see two context-menu options namely Save Desktop Icon Layout and Restore Desktop Icon Layout when you right-click on an empty area on the Desktop. (Tip for advanced users: You can implement the shell extension in My Computer or Folder context menu as well.)

When you click Save Desktop Icon Layout, the Desktop icon positions are saved to a binary registry value, and you see the following message box:

Fig 1: Saving the desktop icon layout

Fig 2: Restoring the desktop icon layout
Uninstalling the Layout.dll shell extension
To uninstall the Layout.dll shell extension, right-click the file Uninstall.reg (available in layout.zip) and choose Merge. Then manually delete the file LAYOUT.DLL from your Windows\System32 folder.
Editor’s note: I noticed a small glitch in this extension. When two files of the same name are present on the Desktop (one in the per-user Desktop and another file with the same name, from the All Users Desktop folder), the shell extension overlaps the two icons that have the same name, and leaves a blank space before the icon. Therefore, rename one of those two files if you can, when using the Layout.dll shell extension. As Windows Vista shows two desktop.ini files on the Desktop, you’ll need to hide them or delete one of those desktop.ini files in order for the Layout.dll shell extension to work perfectly.
Bookmark this Page!
BlinkList | del.icio.us | Digg it | Furl | reddit | Spurl | StumbleUpon |
Related Posts
- Repairing or Rebuilding the Icons in Windows XP Using Tweak UI
- Prevent Internet Explorer Toolbar Layout From Being Reset
- How to Remove the Info Pane in Outlook Express
- Cannot Change the Desktop Wallpaper – Fix
- Restore Missing “Mozilla Firefox” Entry to Set Program Access and Defaults in Windows XP
- Add Favorite Links Folder to the Vista Start Menu
- Restore Point Creation Disabled by Group Policy
- Scan for Affected Programs – New System Restore Feature in Windows 7
- Restore the Start Menu Search Link in Vista Service Pack 1
- Create System Restore Points Quickly Using Script in Windows 7 Vista and XP
If you enjoyed this post, make sure you subscribe to our RSS feed! We feature Tips, Troubleshooting information, Scripts and Utilities for Microsoft Windows Operating Systems!
Prefer an E-mail subscription?

› 
Why does it not run with Win7 64-bit?
Or is there an other solution to do this under win7?
thanks
Wouldn’t it be safer to add a confirmation (Yes/No Before Continuing to Save/Restore Layout) dialog before actually executing the selected right-click command to prevent the user from accidentally clicking the WRONG command – which is easy to do even if you DON’T have poor hand-eye coordination (shaky mouse control) “thanks” to old age, disease, etc?
Or else add a 2nd option to restore the icon layout using a backup copy of the now-previously saved layout in case said layout is overwritten by the “Save Current Layout” command being accidentally selected?
Currently – even w/o shaky hands, I have to be very careful in doing so as to avoid clicking the wrong command and therefore erasing my preferred layout.
@jackdr: Launch Regedit.exe and import the REG file manually, via the File menu.
I am Running Vista Home Premium and cannot Merge the LAYOUT.REG.
I get the MERGE option on R-Click, but instead of merging to registry, it opens the file in Notepad.
Any Suggestions?
It works on my XP pro installtion, but mostly after restoring the resolution to 1600*1200 I have to choose RESTORE up to three times to get the last stored layout back.
Any suggestions why?
Hi. I am running Vista 64 Ultimate. I am able to merge the script, but after that, nothing happens. When I right click the desktop, I do not get the save and restore options. I know this works fine on my Vista 32 machine. Is there a tweak that needs to be done for the 64Bit vista?
Excellent! Works like a charm!
Vista64 is not allowing me to save the layout.dll to the windows\system32 directory. Any suggestions?
Thanks