Restart Windows Explorer explorer.exe with a shortcut

Martin Brinkmann
Aug 9, 2012
Updated • Aug 9, 2012
Tutorials, Windows, Windows tips
|
15

Windows sometimes displays a restart prompt when you install new software or update existing programs and applications on the system. And if you are into Registry hacking, you may also have noticed that the changes and hacks that you make do not become available right away most of the time.

While you could reboot your PC, or log off and on again, it is often enough to kill the explorer.exe process of Windows Explorer for the same effect. Just use Ctrl-Shift-Esc to open the Windows Task Manager, locate explorer.exe in the list, select the process, click on end process to kill it, then on File > New Task (run) and enter explorer.exe here to start the process again.

That's definitely faster than having to restart the system or log off and on again. If you are in a hurry, have to kill explorer.exe regularly, or simply prefer a one-click solution then the following shortcut to kill and restart Windows Explorer may be what you are looking for.

To create the shortcut do the following:

  • Right-click on the desktop or another location and select New > Shortcut from the context menu that pops up.
  • Enter the following command under type the location of the time in the window that is displayed:  cmd.exe /c taskkill.exe /f /im explorer.exe && start explorer.exe
  • Click Next, enter a name for the new shortcut, e.g. Restart Explorer to complete the creation.

When you run the shortcut afterwards, it basically executes the taskkill.exe command that is used to kill explorer.exe, and when that is done a new instance of the Windows Explorer process will be started again. You are probably interested in the parameters:

  • cmd.exe /c run the command that follows and then terminate
  • /f forcefully terminates local processes
  • /im filename determines the file name, in this case explorer.exe, that you want to terminate
  • && adds another command to the end, in this case, to start the explorer.exe process

You will notice that the command window stays open after the commands have been executed which is an unfortunate side-effect of the method.

Update: As Cohesus mentioned in the comments, it is possible to bypass the command prompt window by adding start to the command. The command listed above has been adjusted accordingly, the screenshot is still showing the restart command without the start command.

Advertisement

Previous Post: «
Next Post: «

Comments

  1. RL said on March 2, 2021 at 6:23 pm
    Reply

    This is excellent, THANKS! I have to restart Explorer many times per day because the “autohide” of taskbar gets stuck and blocks important parts of my windows. Until now I was using taskmanager, but this is much faster and less disruptive to my work.

    QUESTION: In Win10, it’s not restarting or re-opening explorer, it’s just killing it. Is there a way to make this a restart instead of just closing it?

    Thanks :)

  2. Anonymous said on July 29, 2020 at 6:31 pm
    Reply

    thanks mate

  3. Wiktor said on October 28, 2017 at 4:14 am
    Reply

    Thank you it helped me a lot

  4. Anonymous said on January 23, 2017 at 9:13 am
    Reply

    cool. My windows 10 VM used to get stuck and I had to manually restart it. This helps now. Thanks

  5. Dan said on June 12, 2016 at 10:53 am
    Reply

    Will this work in Windows 10 during a ‘black screen’ after logging in?

  6. john smith said on March 19, 2013 at 3:47 am
    Reply

    This is a great shortcut that I find very useful, thanks!

  7. Manager said on September 12, 2012 at 4:46 pm
    Reply

    Thank you so much. I really needed this. Thanks again.

  8. Q said on August 31, 2012 at 11:26 pm
    Reply

    In addition to what I posted before, there is also another method of exiting Explorer.exe for Explorer for NT 6 series operating systems that are using the new Start Munu:

    Navigate to Loff Off/Shutdown/Hibernate/Restart button section (applies to entire section including button) and bring up the context menu while holding the Shift and Ctrl keys.

    Select “Exit Explorer”.

  9. Diego said on August 11, 2012 at 3:35 pm
    Reply

    For every WE instance…
    taskkill /F /FI “IMAGENAME eq explore*”

  10. ilev said on August 10, 2012 at 9:40 am
    Reply

    killing explorer.exe kills also icons of the startup applications on the taskbar (near the clock).
    Microsoft crap OS hasn’t been able, all these years, to restore those icons after explorer.exe restart.

    1. anony said on August 14, 2012 at 9:37 pm
      Reply

      Not sure when (before or after 7 sp1), but it’s now show up fine.

      It maybe crap, but it’s a crap that work like you want it to be. Unlike *X.

  11. Q said on August 9, 2012 at 11:36 pm
    Reply

    Martin, forceful termination of the explorer.exe process is not necessary to before starting explorer.exe again to notice Explorer shell related changes made via direct modification of the Windows registry. If the Explorer shell is simply closed, the Explorer process can still be started and shell changes observed.

    The User Interface to close the Explorer shell is not obvious, but from Windows 2000, Windows XP, Windows Server 2003, Windows Vista, and Windows 7 family operating systems, it can be done by selecting “Cancel” form the “Shut Down Windows” dialog box while holding the Ctrl, Alt, and Shift keys.

    1. Fine citizen said on August 10, 2012 at 7:11 pm
      Reply

      wow! you just blew me away with this.
      thank you, that’ll become handy

  12. Cohesus said on August 9, 2012 at 2:11 pm
    Reply

    make it
    taskkill.exe /f /im explorer.exe && START explorer.exe
    then you wont have your cmd remaining open

    1. Martin Brinkmann said on August 9, 2012 at 2:28 pm
      Reply

      Great, thanks for your comment!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.