Solved

Need Powercfg settings to disable sleep mode

Posted on 2011-09-08
4
999 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

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
This article outlines the process to identify and resolve account lockout in an Active Directory environment.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
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 …

860 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