Solved

Need Powercfg settings to disable sleep mode

Posted on 2011-09-08
4
1,000 Views
Last Modified: 2012-05-12
I found the following website to use a script via GPO to disable sleep mode for a laptop on our network:

http://support.microsoft.com/kb/915160

However, I don't know the syntax needed in the script to disable sleep mode.  Can someone tell me what the correct syntax would be to do this?
0
Comment
Question by:JodyBear
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 10

Accepted Solution

by:
Arman Khodabande earned 500 total points
ID: 36504224
Go to
Start menu >> Run >> Type "cmd" >> type "power cfg /?" >> press enter.

This way you'll see the correct syntax and all available commands.

The one you're looking for is:

 /CHANGE, /X     Changes settings of the specified power scheme. Additional
                 switches specify the changes as follows:
                     /monitor-timeout-ac <minutes>
                     /monitor-timeout-dc <minutes>
                     /disk-timeout-ac <minutes>
                     /disk-timeout-dc <minutes>
                     /standby-timeout-ac <minutes>                             <<<<<<<<<<< I think you need this
                     /standby-timeout-dc <minutes>                                              
                     /hibernate-timeout-ac <minutes>
                     /hibernate-timeout-dc <minutes>
                     /processor-throttle-ac <throttle>
                     /processor-throttle-dc <throttle>
                 AC settings are used when the system is on AC power.
                 DC settings are used when the system is on battery power.
                 Setting a timeout to zero will disable the corresponding
                 timeout feature.  Supported throttle settings are NONE
                 CONSTANT, DEGRADE, and ADAPTIVE.
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36504265
Follow the instructions in the
                      http://support.microsoft.com/kb/915160

But change the batch file as you prefer (It depends on whether the laptop is on battery or AC power)

/standby-timeout-ac <minutes>                          
/standby-timeout-dc <minutes>

Change the time to 0 (zero) to disable the sleep mode.
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36504290
Excuse me I mistyped the "powercfg" in the first comment.

I attached the the whole parameters and syntax of powercfg for your comfort.
Powercfg-command-syntax.txt
0
 

Author Closing Comment

by:JodyBear
ID: 36505703
good to go.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question