1.    31 Aug 2015 #1
    Join Date : Aug 2015
    Posts : 5
    windows 10

    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.    31 Aug 2015 #2
    Join Date : Oct 2013
    Posts : 25,707
    64-bit Windows 10 Pro build 17046

    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

 


Similar Threads
Thread Forum
Customization Add 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 to quickly create new files, folders, and shortcuts. You can right...
Tutorials
Start a program from a batch file
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...
Software and Apps
Batch file - Unable to start a program minimized
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...
General Support
System Info Batch File
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...
Chillout Room
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 10:10.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums