: taskkill /f /im explorer.exe && start explorer.exe
The restart explorer command is a Windows command-line utility that allows users to restart the Windows Explorer process, also known as explorer.exe . This process is responsible for managing the Windows desktop, including the taskbar, Start menu, and file explorer. restart explorer command line
Using && ensures the second part only runs if the first part succeeds. : taskkill /f /im explorer
If you need to do this often due to freezes, you can create a desktop shortcut: Restart explorer.exe Process in Windows 10 including the taskbar
This achieve the same result as the CMD method but follows standard PowerShell syntax.