With the CMD command you can quite quickly quit programs and applications and restart on Windows 11, 10, ... and MS Server OS!
There are also tools for such tasks, such as the free Windows tool ProcessKO, but you do not always have to have a program on your PC.
Here's a simple example how to restarting the File-Explorer, if File-Explorer hangs!
Create a batch file on the desktop with the name (as example) restart_explorer.bat
and enter the following commands
taskkill /IM explorer.exe /Fexplorer.exe
This is also the command to restart Windows Desktop The desktop is provided by the MS file explorer, so it is a sub-function of the explorer, if you restart it, the desktop is also restarted.
The first closes all explorer.exe processes / programs
The second one starts the ms-explore
By double clicking on the batch file both commands are executed immediately. (... see Image-1)
Quite, smart, fast and easy!
The output memory of the CMD prompt can easily be extended for longer text outputs The screen buffer size that you set with this option is temporary and
You can quite simply and quickly list all users user accounts or export them to a file. This is available in both console app, the classic command prompt
The solution is quite easy to move with Powershell and / or cmd.exe files, or folders, here with examples Preface: Moving files sometimes makes more sense