Solved

Do not sleep syntax

Posted on 2016-07-16
6
48 Views
Last Modified: 2016-07-17
My OS is win 10 pro 64 bit.  At times whenever I am installing a software, the pc goes into sleep mode or powers off.  I have created the following shortcut which runs, but the monitor still goes to sleep, and also I have to login again.  is the following syntax correct which is on my desktop :
C:\Windows\System32\powercfg.exe -setactive dd36f31e-745c-416d-9958-26cfc61529bf

thank u.
0
Comment
Question by:jegajothy
[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
  • 3
6 Comments
 
LVL 95

Expert Comment

by:John Hurst
ID: 41714962
If the command works the syntax is correct, but you want to make sure you are picking out the correct power plan. Also make sure you are open cmd.exe with Run As Administrator to do this.

Run powercfg -l to list the plans and it will list the plan name with it.

Also (and easier) on your Desktop, go to Control Panel, power, pick out your active plan, go to Advanced settings and for "sleep (or suspend"  set suspend and hibernate to Never. Your machine should be able to run 24x7.

If you do not want a black monitor to ask for a password, turn that off in Advanced Power settings as well (in the display section).
0
 

Author Comment

by:jegajothy
ID: 41715714
in response to John, I do not think the syntax works, because the pc still goes to sleep, and the screen turns black, and I have to revive and login into my pc as though I rebooted.  Thank u.
0
 

Author Comment

by:jegajothy
ID: 41715726
in response to John, I have followed your suggestion, and will get back to see if this works. thank u and regards.
0
Why You Need a DevOps Toolchain

IT needs to deliver services with more agility and velocity. IT must roll out application features and innovations faster to keep up with customer demands, which is where a DevOps toolchain steps in. View the infographic to see why you need a DevOps toolchain.

 
LVL 95

Accepted Solution

by:
John Hurst earned 500 total points
ID: 41715727
You really only need that command (the way you wrote it) to set the power plan. That does not modify the power plan. I think you can ignore the command line approach.

Go to Power Options as I suggested and turn Suspend OFF.

Windows-10-Power-Plan-2
0
 

Author Closing Comment

by:jegajothy
ID: 41716156
Yes, this solution by John works best. Thank u.
0
 
LVL 95

Expert Comment

by:John Hurst
ID: 41716165
You are very welcome and I was happy to help. Thanks for the update that it worked.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

A quick guide on how to use Group Policy to create a custom power plan and set it active on Windows 7.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

739 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