Restart Windows Explorer using command line

Abstract: Resolve frozen desktop icons and unresponsive taskbar by restarting Windows Explorer via command line without rebooting.

Created: 2026-07-31 by
Restarting Windows Explorer via the command line is a quick way to refresh the desktop, taskbar, and file explorer interface without rebooting your entire computer. This process resolves common issues like frozen icons or unresponsive start menus by terminating and immediately relaunching the explorer.exe process through standard system utilities.

Understanding the Process

Windows Explorer (explorer.exe) is responsible for rendering the graphical user interface elements such as the desktop, taskbar, Start menu, and file windows. When these components become unresponsive or glitchy, restarting this single process can often fix the issue instantly. Unlike a full system restart, which takes time and closes all open applications, restarting Explorer only affects the shell environment. You can continue working in other applications while the shell reloads. The most reliable method involves using the Task Scheduler with specific arguments, rather than just killing the process, because simply terminating explorer.exe may leave orphaned processes or fail to restart the shell cleanly on some systems. However, for many users, a simple command-line approach using PowerShell or Command Prompt is sufficient if executed correctly.

Method 1: Using PowerShell

PowerShell offers a robust way to manage processes. To restart Explorer, you need to terminate the existing instance and then launch a new one. Open PowerShell as an administrator by right-clicking the Start button and selecting "Windows PowerShell (Admin)" or searching for it in the Start menu. First, stop the running Explorer process. Run the following command:
Stop-Process -Name explorer -Force
This command forcefully ends the current Explorer session. Your screen may flicker briefly, and the taskbar will disappear momentarily. Once the process is terminated, immediately start a new instance by running:
Start-Process explorer
Your desktop and taskbar should reappear within a few seconds. If you encounter permission errors, ensure you are running PowerShell with elevated privileges. Note that closing all file explorer windows before running this command can prevent conflicts, although the -Force flag usually handles active windows gracefully.

Method 2: Using Command Prompt (CMD)

If you prefer the traditional Command Prompt, you can achieve the same result using taskkill and start. Open CMD as an administrator. First, kill the Explorer process:
taskkill /F /IM explorer.exe
The /F flag forces the termination, and /IM specifies the image name. After the command executes, the desktop will vanish. Immediately follow up with:
start explorer.exe
This launches a new instance of Windows Explorer. While effective, some users report that this method can sometimes leave background instances of Explorer running, leading to resource leaks over time. For a cleaner reset, Method 1 is generally preferred in modern Windows environments.

Creating a Shortcut for Quick Access

For frequent users, creating a batch file or shortcut can save time. Create a new text file, add the two commands from Method 2 separated by a newline, and save it with a .bat extension. Double-clicking this file will perform the restart sequence automatically. Ensure you run it with administrative rights if you experience access denied errors. Another alternative is using the Task Manager GUI, but the command line approach is faster for scripting or remote administration scenarios. It integrates well with automation tools and does not require mouse interaction. Batch File Not Working with Space in File Name is relevant here if you plan to store your restart script in a directory with spaces, as you may need to quote the path properly.

Troubleshooting Common Issues

Sometimes, the restart fails to restore the desktop properly. This can happen if critical system files are corrupted or if third-party shell extensions conflict with the process. In such cases, try restarting the computer instead. Additionally, ensure that no antivirus software is blocking the execution of explorer.exe. If the command prompt returns an error stating that the process cannot be found, verify that you are targeting the correct process name. On some highly customized systems, the executable might have a different path, though explorer.exe remains the standard identifier. Cutting Short Video Clip Renders Subtitles Command Line (Windows) highlights the power of command-line efficiency, similar to how restarting Explorer provides immediate UI recovery without navigating multiple menus.

Frequently Asked Questions

Will restarting Explorer close my open programs?

No, restarting Windows Explorer only affects the desktop, taskbar, and file explorer windows. Your running applications, such as web browsers or word processors, remain open and unaffected during the process.

Why does my screen go black when I restart Explorer?

The screen flickers or goes black temporarily because the graphical shell is being terminated. This is normal behavior as the display manager stops drawing the desktop elements before restarting them.

Can I use this method on Windows 11?

Yes, the commands Stop-Process and taskkill work identically on Windows 11. The underlying process name explorer.exe remains the same across recent Windows versions.

What if the restart doesn't fix the frozen taskbar?

If restarting Explorer does not resolve the issue, the problem might lie with a corrupted system file or a faulty shell extension. You may need to run System File Checker (sfc /scannow) or disable recently installed context menu handlers.

Is there a risk of data loss when forcing Explorer to close?

There is minimal risk of data loss since Explorer primarily manages the UI. However, any unsaved documents in file explorer windows will be closed abruptly. Always save your work in active applications before performing this operation.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More