Sleep W10 Temporized ?

Discussion in 'Software' started by danar, Mar 18, 2021.

  1. danar

    danar Private E-2

    Ok Hello everyone, im Danar, new in forum but majorgeeks is part of my favs since 8 years.
    this is the first time i introduce myself in this forum to find an answer, as you can see my english is poor, so i beg you pardon, and now here is my question ( already try google and several forum before...) :

    usually when i go sleep, my computer works for me an hour, so to turn it off i use a bat with shutdown command. ok i wanna do the same but no shutdown, just sleep, to wake my computer with keyboard.

    there is a prompt command to do that in a bat file and temporize, as i do with shutdown command?

    best regards,

    danar
     
  2. _nullptr

    _nullptr Major Geeky Geek Geek

    Hi and welcome danar.

    You could do it by using a program called PsShutdown.

    https://live.sysinternals.com/psshutdown.exe

    To sleep, just call it using the code: psshutdown.exe -d -t 0 -accepteula

    note -t argument is the time in seconds, so for 1 hour it would be

    psshutdown.exe -d -t 3600 -accepteula
     
    Last edited: Mar 18, 2021
  3. danar

    danar Private E-2

    Hi _nullptr
    thanks for your answer,
    i saw that solution with psshutdown
    i gonna give it a chance and try it

    thank you for your help.
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds