When your taskbar freezes, your desktop icons vanish, or the Windows shell stops responding, you don't need to reboot your entire computer. You just need to relaunch the graphical interface process. Learning how to start explorer.exe via CMD gives you a fast, reliable method to recover a broken desktop session in seconds, especially when the mouse or start menu won't cooperate.
The main process responsible for your taskbar, desktop, and file management interface is Windows Explorer (explorer.exe). If it crashes or gets terminated, your screen might go entirely blank except for your open application windows. Knowing how to trigger it from the command line is an essential troubleshooting skill for any power user or system administrator.
Opening Command Prompt When the Desktop is Missing
If your taskbar and desktop icons are completely gone, your normal routine of clicking the Start menu won't work. You need to launch a command-line interface using alternative shortcut keys.
- Press
Ctrl+Shift+Escon your keyboard to open the Task Manager directly. - If Task Manager opens in its compact view, click More details at the bottom to expand it.
- Click on the File menu in the top-left corner and select Run new task.
- Type
cmdinto the open box. - Check the box that says Create this task with administrative privileges if you want to run it with elevated permissions, then hit
Enteror click OK.
This opens a standard Command Prompt window from which you can manage system tasks without relying on the graphical shell. For official documentation on managing Windows processes, check out the Microsoft Learn Support Center. Related reporting regarding this has been provided by BBC.
Launching Explorer.exe from the Command Line
Once you have your Command Prompt window open, launching the user interface requires a single command.
Type the following command and press Enter:
explorer.exe
Within a second or two, the Windows shell will re-initialize. Your taskbar will reappear, your desktop icons will load back into place, and normal system functionality will return.
How to Restart Explorer in One Single Step
If your desktop is still visible and responsive, but Windows Explorer is lagging or glitching out, you can combine the termination and restart steps into a single line. This saves you from having to close and reopen multiple windows.
Open your normal Command Prompt and execute this combined command:
taskkill /f /im explorer.exe & start explorer.exe
/fforces the termination of the current hanging process./imspecifies the image name of the target program (explorer.exe).&tells the console to immediately run the next command right after the first one finishes.
Creating a Desktop Shortcut for Quick Restarts
If you work with software that frequently causes UI freezes or shell conflicts, typing out commands repeatedly gets tedious. You can build a permanent desktop shortcut that restarts the graphical shell with a single double-click.
- Right-click on an empty space on your desktop, hover over New, and select Text Document.
- Open the newly created text file and paste the following line:
taskkill /f /im explorer.exe & start explorer.exe - Click File > Save As.
- Change the Save as type dropdown to All Files (.).
- Name the file
RestartExplorer.batand click Save.
You now have a custom batch script on your desktop. Whenever your shell acts up, double-clicking this file will instantly cycle the interface process. For deeper insights into Windows command-line scripting and shell behaviors, refer to the Computer Hope Windows Guide.
Troubleshooting Common Issues
Sometimes, simply running the command isn't enough because underlying system conflicts prevent a clean load.
Persistent Blank Screens
If you run explorer.exe and your screen stays black or loops endlessly, corrupted system files are often the culprit. Open an elevated Command Prompt and run the built-in deployment image service to repair system integrity:
DISM.exe /Online /Cleanup-image /Restorehealth
After that scan completes, follow up with the system file checker:
sfc /scannow
Access Denied Errors
If you receive an error stating you lack permissions to kill or start the process, make sure you are launching your Command Prompt as an administrator. Right-click the Command Prompt shortcut in your search results and choose Run as administrator before executing your commands.
Frequently Asked Questions
Why does explorer.exe crash repeatedly?
Frequent crashes usually point to faulty shell extensions added by third-party context-menu software, outdated graphics drivers, or corrupted user profiles. Clean-booting your PC can help isolate which application is interfering with the Windows shell.
Does restarting explorer.exe close my open programs?
No. Killing and restarting explorer.exe only shuts down the graphical desktop shell and taskbar. Your active applications, browser windows, and documents will remain open in the background.
Can I use PowerShell instead of CMD for this?
Yes. PowerShell accepts the exact same syntax for both task termination and restarting. You can type Stop-Process -Name explorer -Force followed by Start-Process explorer in a PowerShell window to achieve the exact same result.
What should I do if Task Manager won't open?
If your system is completely frozen and keyboard shortcuts like Ctrl + Shift + Esc fail, use Ctrl + Alt + Del to reach the security screen, where you can explicitly select Task Manager or sign out of your user account.