Solved

Do not sleep syntax

Posted on 2016-07-16
6
41 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 93

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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 93

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 93

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

770 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