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 to the original 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 to the original icon positions during the current logon session, forcible kill and restart the Explorer.exe
process. To do that, press Win + R to launch the Run dialog, type the following command, and press Enter:
taskkill /f /IM explorer.exe
The above command works in all versions and editions of Windows. In Windows Pro editions, alternately, you can also use this command:
tskill explorer
This closes all folder windows, kills Explorer shell, and restarts it. The last saved desktop icons position (written during the 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 cleanly exiting Explorer won’t help in this case, as it would save the current desktop icons layout to the registry.
One small request: If you liked this post, please share this?
One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!
Clever trick! 🙂
Thanks Anon.
My computer says it can’t find tskill. What can I do now?
Colleen: It’s there in Pro editions and higher. Pls use this instead:
taskkill /f /IM explorer.exe
lifesaver!
Did not work in Windows 10 Home Version 1903 OS Build 18362.592.
Went to all blue screen and stopped. Had to re-boot whole system.
Ron L.
Exactly what happened with my Win10 Pro setup. Bummer.
No idea when this was written, but it still helps others like me in 2021!
If you kill the shell you will simply have to log out and it will revert to the logon screen – at least in W10-pro it did.
Thank you!
@Laszlo: Thanks for the feedback!
If you get the blue screen don’t get bummed – it’s just half the battle.
I ran the taskkill method and killed all of explorer, like expected, but it didn’t restart. Blue screen, no task bar, no start menu – like others said. But – then I just did the 3-finger salute (ctrl-alt-del) and ran Task Manager.
Go to File -> Run new task
Enter “explorer” (or maybe I typed explorer.exe? I bet both would work though)
Everything came back – icons back in the places I wanted them to be. No restart/logoff required.
Thanks for the tip!
But
Windows 10 Home Edition – build 19042
THANKS A LOTTTTT