To restart Explorer.exe from Command Prompt in Windows 11, run taskkill /f /im explorer.exe && start explorer.exe; in PowerShell, run Stop-Process -Name explorer -Force and start it again with Start-Process explorer.exe if the taskbar does not come back.
This guide covers both shells, a one-click batch file, the Task Manager fallback, how to confirm Explorer is running and what to do when the screen stays black.
Restart Explorer.exe in CMD
Explorer.exe draws the taskbar, Start menu, desktop icons and File Explorer windows. Ending it and starting it again clears a frozen taskbar without signing out or rebooting.
taskkill /f /im explorer.exe && start explorer.exe
taskkill /im explorer.exe picks the process by its image name and /f ends it forcefully. The && operator runs start explorer.exe only if taskkill succeeded, so Explorer launches again straight away.
You should see: The taskbar and desktop icons disappear for a moment, then return as Explorer starts again.
Open Command Prompt from Start search before you run it, because the taskbar is gone until Explorer starts again. Explorer runs under your own account, so a normal (non-administrator) Command Prompt is enough.

Restart Windows Explorer with PowerShell
PowerShell uses Stop-Process to end Explorer by name. Add -Force so PowerShell never stops to ask for confirmation.
- Open Windows PowerShell or Terminal from Start search.
- Type
Stop-Process -Name explorer -Forceand press Enter. - Wait a few seconds and watch the bottom of the screen for the taskbar.
- If the taskbar does not return, type
Start-Process -FilePath explorer.exeand press Enter. - Confirm the taskbar, Start button and desktop icons are back.
Stop-Process only works on processes on the local computer. It asks for confirmation only when the process belongs to another user, which is why -Force is harmless here.

How to restart Explorer.exe without Task Manager in Windows 11
Command Prompt, PowerShell and a saved batch file all restart Explorer without opening Task Manager. Pick the one that matches what you have open.
| Your situation | Use this | Why |
|---|---|---|
| Command Prompt is already open | taskkill /f /im explorer.exe && start explorer.exe |
One line ends Explorer and starts it again |
| PowerShell or Terminal is open | Stop-Process -Name explorer -Force, then Start-Process -FilePath explorer.exe if needed |
Native cmdlets, no confirmation prompt |
| The taskbar freezes often | A batch file on the desktop | Double-click to restart Explorer with no typing |
| Screen is black and no window is open | Task Manager > Run new task > explorer.exe |
Starts Explorer when nothing else is reachable |

Restart Explorer.exe with a batch file
A batch file saves the Command Prompt line so you can run it with a double-click whenever the taskbar or Start menu hangs.
- Open Notepad from Start search.
- Type
taskkill /f /im explorer.exeon the first line. - Type
start explorer.exeon the second line. - Save the file to your desktop with a
.batextension, for examplerestart-explorer.bat, and make sure Notepad does not add.txt. - Double-click the file whenever Explorer freezes to end and restart Explorer.
Command Prompt runs the two lines in order, the same as the one-line && version, because the Windows Command Processor reads a batch file from top to bottom.
Restart Windows Explorer from Task Manager when the screen is black
When the taskbar and desktop are gone, Task Manager is the one window you can still reach with one of its keyboard shortcuts. Microsoft lists this as the fix for a blank screen that still shows a mouse cursor.
- Press Ctrl + Shift + Esc to open Task Manager.
- Find Windows Explorer in the process list.
- Right-click Windows Explorer and select Restart.
- If Windows Explorer is not listed, select File > Run new task.
- Type
explorer.exeand press Enter.
The Run new task box also accepts cmd or powershell, which opens a shell for the commands above when Start search is unavailable.

taskkill and Stop-Process switches for Explorer.exe explained
| Part | Shell | What it does |
|---|---|---|
taskkill |
Command Prompt | Ends one or more tasks or processes |
/im explorer.exe |
Command Prompt | Selects the process by image name instead of process ID |
/f |
Command Prompt | Ends the process forcefully |
&& |
Command Prompt | Runs the next command only if the previous one succeeded |
start explorer.exe |
Command Prompt | Launches Explorer.exe in a new process |
Stop-Process -Name explorer |
PowerShell | Stops every running process named explorer on the local computer |
-Force |
PowerShell | Stops the process without a confirmation prompt |
Start-Process -FilePath explorer.exe |
PowerShell | Starts Explorer.exe as a new process |

Check Explorer.exe is running again
- In Command Prompt, run
tasklist /fi "IMAGENAME eq explorer.exe"and confirm a line for explorer.exe with a PID appears. - In PowerShell, run
Get-Process -Name explorerand confirm at least one explorer process is listed. - Select the Start button and confirm the Start menu opens.
- Press Windows logo key + E and confirm a File Explorer window opens.
A new PID compared with before the restart proves Explorer was ended and launched again, not just left running.

Explorer.exe will not restart from CMD or PowerShell
The screen stays black after taskkill
Explorer was ended but the start command did not run, so no shell is loaded.
- Press Ctrl + Shift + Esc to open Task Manager.
- Select File > Run new task.
- Type
explorer.exeand press Enter.
Stop-Process asks for confirmation
Stop-Process prompts before ending a process that belongs to another user.
- Add
-Forceto the command:Stop-Process -Name explorer -Force. - To stop an Explorer process owned by another user, open PowerShell with Run as administrator and run the command again.
Explorer crashes on start or the taskbar never appears after the restart
On some managed Windows 11 24H2 and 25H2 PCs, XAML packages that Explorer depends on do not register in time after an update.
- Select Start > Settings > Windows Update > Check for updates.
- Install every available update; Microsoft fixed the issue starting with the June 23, 2026 update (KB5095093).
- Restart the PC once the updates finish.
File Explorer still will not open after a restart
Pending updates or a damaged Windows installation.
- Check for updates in Windows Update and install them.
- Restart the device so pending updates finish installing.
- If File Explorer still fails, reset the PC from the Windows recovery options.
Restart Explorer.exe from command line FAQ
What is the command to restart Explorer.exe in CMD?
Run taskkill /f /im explorer.exe && start explorer.exe in Command Prompt. The first part ends Explorer forcefully by image name, and the second part starts it again only if the first part succeeded.
What is the PowerShell command to restart Windows Explorer?
Run Stop-Process -Name explorer -Force in PowerShell. If the taskbar does not return within a few seconds, run Start-Process -FilePath explorer.exe to launch Explorer again.
Do I need administrator rights to restart Explorer.exe?
No. Explorer.exe runs under your own user account, so a normal Command Prompt or PowerShell window can end and restart it. Administrator rights are only needed to stop a process owned by another user.
How do I restart Explorer without Task Manager?
Use Command Prompt or PowerShell. Run taskkill /f /im explorer.exe && start explorer.exe in Command Prompt, or Stop-Process -Name explorer -Force in PowerShell, or save the two taskkill and start lines as a batch file.
How do I start explorer.exe when the screen is black?
Press Ctrl + Shift + Esc to open Task Manager, select File > Run new task, type explorer.exe and press Enter. This works when the taskbar and desktop are gone but the mouse cursor is still visible.
What does taskkill /f /im explorer.exe do?
It forcefully ends every process with the image name explorer.exe. The taskbar, Start menu and desktop icons disappear until Explorer is started again with start explorer.exe.
How can I tell if Explorer.exe is running?
Run tasklist /fi "IMAGENAME eq explorer.exe" in Command Prompt or Get-Process -Name explorer in PowerShell. Either command lists explorer.exe with its process ID when it is running.





