Solved

Do not sleep syntax

Posted on 2016-07-16
6
33 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
  • 3
  • 3
6 Comments
 
LVL 90

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
Do email signature updates give you a headache?

Do you feel like all of your time is spent managing email signatures? Too busy to visit every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

 
LVL 90

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 90

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

Too many email signature updates to deal with?

Do you feel like you are taking up all of your time constantly visiting users’ desks to make changes to email signatures? Wish you could manage all signatures from one central location, easily design them and deploy them quickly to users? Well, there is an easy way!

Join & Write a Comment

This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

705 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

17 Experts available now in Live!

Get 1:1 Help Now