Is there any way to make a desktop shortcut for the sleep command?

Anonymous
2009-01-10T03:57:52+00:00

Desktop shortcut for the sleep command?

Is there any way to make a desktop shortcut for the sleep command? I can't find the actual location that the sleep button on the start menu points to. It has to point somewhere! Please, if anyone knows how i can create this shortcut, help!!! Thanks a bunch!

Windows for home | Previous Windows versions | Accessibility

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
Answer accepted by question author
Anonymous
2009-01-10T12:18:27+00:00

Tar-ter,

To create a shortcut that will execute the sleep command in Vista:

  • Right Click in the desired location (On the Desktop or in a folder)
  • Select New -> Shortcut
  • In the “Type the location of the item” field enter the following
  • Rundll32.exe Powrprof.dll,SetSuspendState Sleep
  • Click Next
  • This will create a shortcut with the name rundll32,
  • Right Click the shortcut, select Rename and type in Sleep

**** You can now open this shortcut whenever you desire to put your computer into sleep mode.

Note: You can replace the default icon with a Shutdown one by:

  • Right Click the created shortcut, select Properties -> Change Icon
  • Navigate to this link in the **“**Look for icons in this file:” field:
  • %SystemRoot%\system32\SHELL32.dll icons
  • Find the desired icon.
  • Click Ok.

Thank you for using the Microsoft Vista Support Community.


Rami

Microsoft Answers Support Engineer

Visit our Microsoft Answers Feedback Forum and let us know what you think.

Was this answer helpful?

60+ people found this answer helpful.
0 comments No comments

73 additional answers

Sort by: Oldest
  1. Anonymous
    2009-01-27T16:48:57+00:00

    Thank-you very much. works great!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2009-03-02T18:59:25+00:00

    Rami - Support Engineer said:

    Rundll32.exe Powrprof.dll,SetSuspendState Sleep

     Well, I followed given steps but my PC goes into hibernate, not sleep...

    Regards,

    tene

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2009-03-03T05:10:03+00:00

    Hi tenebrae,

    Let's check to make sure your computer is capable of using sleep mode.

    Click on the Start orb.

    Type cmd in the Start Search box and press enter.

    Type powercfg -a and press enter.

    Please post the output from that command here.


    Brent

    Microsoft Answers Support Engineer

    Visit our Microsoft Answers Feedback Forum and let us know what you think.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  4. Anonymous
    2009-10-25T08:12:10+00:00

    I encounter the same problem... goes to hybrid sleep when I'm trying to achieve a normal "sleep" desktop shortcut. 

    powercfg -a says

    S3 supported

    S2 not supported by my firmware

    S1 not supported by my firmware

    However, (Windows key, -->, -->, S) works just fine for acquiring the appropriate sleep mode.  So I know that the command

    exists somewhere and the function can be performed. 

    Thanks,

    Digitalist

    Websphere Support and Development Team -- IBM

    P.S.  My issue and experiences relate to Windows 7.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments