1

How can I make a Windows 10 PC sleep from Command Prompt or PowerShell? For example, to shutdown PC we can use the following:

shutdown /s /f 

or to hibernate...

shutdown /h /f

Is there any command like these to make computer sleep?

DAF
  • 234
  • 3
  • 5
  • 14
  • Hmm, and I was thinking it was a duplicate of [Is there a command line tool to put Windows... to sleep?](https://superuser.com/a/463652/401839) which is, itself, marked as a duplicate. – TOOGAM Jan 15 '19 at 12:44
  • See this....https://winaero.com/blog/how-to-sleep-windows-10-from-the-command-line/ – Moab Jan 15 '19 at 14:01
  • 1
    Run command as an administrator and run **psshutdown -d -t 0** to suspend the computer and make it sleep, more parameter could refer to this [Psshutdown](https://docs.microsoft.com/zh-cn/sysinternals/downloads/psshutdown) – yilia zhao Jan 16 '19 at 04:43

0 Answers0