Quick overview:
Every time you want to shut down your computer, you are faced with a long journey involving many clicks. You shouldn't have to endure this odyssey, but program your own ways of shutting down with just a few simple steps, turning it into a double-click or keystroke.
And this is how you proceed:
1. Right-click on a free area of the desktop and select New/text file. Now open it by double-clicking on it.
2. Now write the following lines in it:
runonce.exe -q
rundll32.exe shell32.dll,SHExitWindowsEx 1
Fast shutdown via link
Now click on Datei > Save as... and a new window will appear. Under File type choose All files. Then enter the following as the file name: Windows Shutdown.bat (The name itself does not matter, only the .bat must always follow)
3. If you now double-click on it, your computer shuts down without prompting.
The number 1 in the text file can be replaced by the following commands:
0 = Log out user
1 = Shut down Windows
2 = Restart Windows
4 = Force shutdown, regardless of which programs are running. This can lead to data loss if they have not been saved.
NOTE FOR NEW PUBLICATION: This article was produced by Sandro Villinger and comes from the Windows Tweaks archive, which has been built up since the late 1990s.

On Windows Tweaks you will find time-saving tech guides for PC, software & Microsoft. For a stress-free digital everyday life. Already we have been "tweaking" Windows since 1998 and just won't stop!