Hibernate command

Solved
First of all, good evening everyone,
As the title of the message says, I am looking for a command for SLEEP MODE EXTENDED, like:

rundll32.exe user32.dll,LockWorkStation: for sleep mode
shutdown.exe -s: for completely shutting down the computer
etc.

...but for hibernation (I would like to create a shortcut to place on the desktop).

Thank you in advance and I hope someone can respond to me.
Configuration: Windows XP SP2 (English)

42 answers

  • Votes
  • Date
  • Descending date
  1. To disconnect: rundll32.exe shell32.dll,SHExitWindowsEx 0

    To quit Windows: rundll32.exe shell32.dll,SHExitWindowsEx 1

    To restart Windows: rundll32.exe shell32.dll,SHExitWindowsEx 2

    To force shutdown Windows: rundll32.exe shell32.dll,SHExitWindowsEx 4

    To quit Windows and turn off the computer: rundll32.exe shell32.dll,SHExitWindowsEx 8

    To format: rundll32.exe shell32,SHFormatDrive

    To print a test page: rundll32.exe msprint2.dll,RUNDLL_PrintTestPage

    To create a new briefcase on the desktop: rundll32.exe syncui.dll,Briefcase_Create

    To open the control panel: rundll32.exe shell32,Control_RunDLL

    To initiate hibernation: rundll32.exe powrprof.dll,SetSuspendState
    1. To restart Windows: rundll32.exe shell32.dll,SHExitWindowsEx 2

      this does not work for win7,

      any idea?

      thank you
    2. Yes. But the best thing to do is to execute shutdown -r -t 01 to restart your PC.