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.

Related Posts


Email SubscriptionPrefer an E-mail subscription?

Enter your email address:

Delivered by FeedBurner

8 Comments

  1. roemer2201
    said this on Monday, June 7th 2010 1:27 pm

    after logout/login the icons are listet on the left side. i can restore them, but when i press F5 to refresh the desktop, the icons are on the left side. I got Win XP Pro (SP3) running in a virtual machine with VirtualBox.

  2. John P
    said this on Friday, September 18th 2009 3:44 pm

    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.

  3. said this on Wednesday, September 16th 2009 8:46 am

    @jackdr: Launch Regedit.exe and import the REG file manually, via the File menu.

  4. jackdr
    said this on Sunday, September 13th 2009 9:11 am

    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?

  5. said this on Wednesday, May 27th 2009 1:23 am

    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?

  6. Rich Sensale
    said this on Wednesday, February 18th 2009 2:51 am

    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?

  7. AvrohomD
    said this on Tuesday, November 25th 2008 8:28 pm

    Excellent! Works like a charm!

  8. Rick
    said this on Tuesday, August 19th 2008 5:55 am

    Vista64 is not allowing me to save the layout.dll to the windows\system32 directory. Any suggestions?

    Thanks

Leave a Reply