If you’ve accidentally reset your custom desktop icons layout by enabling Auto arrange or by hitting a wrong key sequence, here is a neat trick to revert back the original desktop icons position.
Desktop icons layout remains in the memory until you initiate a logoff. During user account logoff or when restarting Explorer cleanly, the desktop icons position is saved to the registry. To quickly revert back original icon positions during the current logon session, forcible kill and restart the Explorer.exe process. To do that, press WinKey + R to launch the Run dialog, type the following command and press ENTER:
This closes all folder windows, kills Explorer shell and restarts it . The last saved desktop icons position (written during previous logoff) is now applied. Of course, this would work only if you’ve inadvertently changed the desktop icon layout during the current logon session.
Note that gracefully exiting Explorer is not going to work in this case, as it would save the current desktop layout to the registry.
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and has a vast experience in the ITeS industry — delivering support for Microsoft's consumer products. He has been a Microsoft MVP [2003 to 2012] who contributes to various Windows support forums.