Shortcut To Put Your Computer Into Standby

When I am not using my computer, I like to put it into standby mode. This helps save power and cuts down on the heat output when I am not using the computer. A shortcut (literally) that I use is a command line batch script to put the system into standby.

From this Microsoft article, the command is simply:

%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState

The article states that if hibernation is enabled on the machine, running the above command will hibernate the system instead of putting it into standby (so make sure you have the power settings how you want them).

You could also use this command to put your system into standby/hibernation after running nightly scheduled tasks. This would ensure your computer stays in lower power mode while you are away.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

  • Michael Trombetta

    A better idea is to use Steve Gibson’s Wizmo, which can put your machine into Standby or Hibernate, and do lots of other tasks as well.
    I am almost positive I learned about Wizmo from you!

    • Jason Faulkner

      Great program. You may have heard about it on this site, but I have never run a tip on it.
      I’m going to give it a try and I will probably run a tip on it in the near future. Thanks for passing this along.

  • http://kkomp.com Sharron (kkomp)

    I’ve had an icon on the desktop for quite a while now that executes this command when clicked.

    How to make an icon to click (Done in XP.):

    Right-click on a blank area of your desktop (Where there are no icons.) and mouse-over “New” in the box that appears. Click “Shortcut”. Another box appears asking you to type the location of the item: Enter in the full command:

    “%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState”

    and click next.

    It now asks you to type a name for this shortcut: I named mine “Sleep or Hibernate”. Why? Because if you don’t have hibernation enabled it sends your computer to sleep (Standby.).

    Click next, the box vanishes, and an icon appears on your desktop. – Target neutralised.

    Any time you want your computer to sleep or to hibernate; depending on how you’ve set it, just click the icon and do nothing else.

    To configure your computer to allow hibernation; right-click on a blank area of the desktop (Where there are no icons.) and click “Properties”.

    Click “Screen Saver” tab and click the “Power” button near the bottom right-hand corner.

    Click the “Hibernate” tab: There is a checkbox near the top with the words “Enable hibernation” next to it. If this checkbox is ticked then your computer is enabled to hibernate. If you leave it unticked your computer will sleep (Standby.) when the icon you just created is clicked.

  • John

    Does this work with Vista, as when I entered location it came back to say location not found.

  • Jerry

    Thank you, Sharron! After surfing all over, I found your solution that works like a charm!

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: