?
Solved

Need Powercfg settings to disable sleep mode

Posted on 2011-09-08
4
Medium Priority
?
1,004 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 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

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 process allows computer passwords to be managed and secured without using LAPS. This is an improvement on an existing process, enhanced to store password encrypted, instead of clear-text files within SQL
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Suggested Courses
Course of the Month12 days, 20 hours left to enroll

777 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