I have come across a Lenovo IdeaCentre A540-24ICB system with a scheduled task that wakes the computer to start my application and it seems to start but the system goes back to sleep right away. Sometimes it appears to not start (or goes to sleep…
I'm working on a small C# app that will import a power plan to the user's PC and set it as active.
It working perfectly with a .bat file when the .pow file is in the same folder and I'm running commands:
powercfg -import…
I am trying to use powershell to query some Windows power settings from the output of powercfg. I have enough information to narrow down the range to a subgroup of settings, but within the text block I still need to find a matching setting using a…
I have a Powershell script I'm working on to automate some processes of our deployment method for a Windows 10 migration. Part of this script activates the High Performance power plan option using powercfg. It works fine on the desktops we use where…
I want to use the command:
subprocess.check_output(["powercfg", "-list"])
which gives me:
Existing Power Schemes (* Active)
-----------------------------------
Power Scheme GUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (Balanced)
Power Scheme…
I'm trying to get the output of the powercfg -requests command from a vc++ program. However, it gives a output which is totally different from the output which is given when I manually execute the command in cmd.exe.
I tried to search about it and…
I'm wondering if there is a way to modify the powercfg script to pull from a list of PC's to change the power settings on many remote computers?
This is the script i'm using now:
psexec \PC-NAME powercfg -change -hibernate-timeout-ac 0
Thanks!
I'm trying to make a batch file that will change the lid options on our laptops to "Do Nothing" The commands I am using are:
powercfg -SETACVALUEINDEX 381b4222-f694-41f0-9685-ff5bb260df2e 4f971e89-eebd-4455-a8de-9e59040e7347…
So I'm trying to get a bat file together with power settings that I want to apply. But I'm running into an issue. For some reason, the power button and lid close actions wont change. Here is the relevant code from the bat:
set pf=powercfg
set…
Can you look at the code and tell me why it won't set-up my powerconfig? It works fine when launched as batch script (so config files are alright), but not when i run same commands under C#
public void setPowerProfileLaptop()
{
…
Thanks for taking a look at my question.
I am using powershell to try to parse through an xml file and get only the information I am interested in. Having looked around the net for some tutorials and examples I put together the command below, but…
If I try to run this in CMD:
powercfg –setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEODIM 0
then nothing happens.
If I try this:
powercfg -setacvalueindex SCHEME_CURRENT SUB_VIDEO VIDEOIDLE 300
then it works?
What am I doing wrong?
I can change…
I am having a slightly odd problem.. the following lines run fine directly in powershell:
1) powercfg -AVAILABLESLEEPSTATES
2) powercfg -energy
Straight forward enough, -energy generates its file, has other flags I could play with.
Running line…
I need to use the powercfg tool from my service and I was curious, if it was safe to call it as such:
powercfg
instead of providing a full path to it. The reason I'm thinking about it is that I keep reading security warnings in…