Skip to content

Instantly share code, notes, and snippets.

@Silica163
Last active July 22, 2023 07:16
Show Gist options
  • Select an option

  • Save Silica163/f795ae289f3f6627436849bee7301d78 to your computer and use it in GitHub Desktop.

Select an option

Save Silica163/f795ae289f3f6627436849bee7301d78 to your computer and use it in GitHub Desktop.
Save all unsave file then run this script in command prompt as administrator.

Explanation

taskkill /f /im explorer.exe stop all image process of explorer.exe

shutdown /r /t 0 restart the computer

If you don't want to restart your computer

use this script taskkill /f /im explorer.exe

I recommend you do not use this script, because it will kill all explorer.exe's image process and you can't use Taskbar, Desktop until you restart explorer.exe's image by run explorer.exe.

taskkill /f /im explorer.exe && shutdown /r /t 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment