Windows 10: How to use psshutdown.exe to create a batch file to shutdown my PC

  1.    31 Aug 2015 #1

    How to use psshutdown.exe to create a batch file to shutdown my PC

    I am trying to use psshutdown.exe to create a batch file to shutdown my PC. I want the equivalent of "Shut Down" from the start menu.

    Should I use the switch -k or -s.

    I do not understand the difference between these arguments and I want to make sure I have a controlled shutdown as opposed to what would happen if the power was cut off to the computer.

    -k Poweroff the computer (reboot if poweroff is not supported)
    -s Shutdown without poweroff
      My ComputerSystem Spec

  2. Brink's Avatar
    Posts : 33,116
    64-bit Windows 10 Pro build 18262
       31 Aug 2015 #2

    Hello Robert, and welcome to Ten Forums. :)

    I'm not sure this will work for what you are trying use that command for, but if you like, you might see if one of the shutdown commands in OPTION EIGHT of the tutorial below may work for you in a batch file .

    Shut Down Computer in Windows 10
      My ComputersSystem Spec


Related Threads
How to Add Windows Batch File to New Context Menu in Windows 10 A .bat file is a batch file that consists of a series of commands to be executed by the command line interpreter, stored in a plain text file. The New context menu allows users...
Start a program from a batch file in Software and Apps
I'm trying to create a batch file that should - call another batch file - start a program and then wait for the program to close - call another batch file My goal with this is to work around an issue in Windows 10 where the screensaver won't...
I've been trying to figure this out for a while now and I can't. I've looked at tons of small tips online to get this working but it doesn't work at all. I have a batch file which causes various programs to start when opened. However, one of them...
System Info Batch File in Chillout Room
Hi Everyone, I thought it may be interesting to get input from others regarding this batch file. I was hoping for suggestions about: Information to add to the report. Ways of making the current code more efficient. Etc... A while back i...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 02:13.
Find Us