Search code examples
batch-fileshutdownlogoff

DOS command to bring up "Turn off computer" window?


I would like to create a batch file that brings up the Windows "Turn off computer" window, rather than the user doing so through the usual Start / Turn off Computer method.

Here's a picture of the window I would like to bring up using a DOS batch file :-

https://i.sstatic.net/5exhq.jpg

Does anyone know of a way to do this using a DOS / Batch file method ?

Many thanks,

Martin


Solution

  • Shutdown windows with batch file