Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 63
  • Last Modified:

Do not sleep syntax

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
jegajothy
Asked:
jegajothy
  • 3
  • 3
1 Solution
 
JohnBusiness Consultant (Owner)Commented:
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
 
jegajothyretiredAuthor Commented:
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
 
jegajothyretiredAuthor Commented:
in response to John, I have followed your suggestion, and will get back to see if this works. thank u and regards.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
JohnBusiness Consultant (Owner)Commented:
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
 
jegajothyretiredAuthor Commented:
Yes, this solution by John works best. Thank u.
0
 
JohnBusiness Consultant (Owner)Commented:
You are very welcome and I was happy to help. Thanks for the update that it worked.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now