[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Need Powercfg settings to disable sleep mode

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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
Let's recap what we learned from yesterday's Skyport Systems webinar.
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…
Suggested Courses

656 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