Solved

Need Powercfg settings to disable sleep mode

Posted on 2011-09-08
4
996 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
good to go.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
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 transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now