Solved

power settings scripting

Posted on 2013-06-11
7
232 Views
Last Modified: 2013-06-17
Hi all, i am looking at having a script to change power setting on our laptops we build, we want no sleep, no screensaver, no action on lid, no action on power button.
We use windows 7 and i would like to be able to run this as say a batch file or something
any help appreciated
0
Comment
Question by:Shifnal
  • 4
  • 3
7 Comments
 
LVL 5

Expert Comment

by:MisterTwelve
ID: 39238464
This article give you some options to create and configure Power Plan for your laptops
http://support.microsoft.com/kb/935799

best regards
0
 

Author Comment

by:Shifnal
ID: 39238571
Thanks but i actually want to be able to edit a script with different options if possible to suit different build, was thinking of some kind of batch file that i could edit and just run???
0
 
LVL 5

Expert Comment

by:MisterTwelve
ID: 39240563
You can use "Reg Add" command to change power setting.

you open a Command prompt with "Run as Administrator" Options

Use the command reg add:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ControlPanel\NameSpace\{025A5937-A6BE-4686-A844-36FE4BEC8B6D}" /v PreferredPlan /t REG_SZ /d a1841308-3541-4fab-bc81-f71556f20b4a /f

Open in new window


Take attention to the power plan like previous article
"
Type 381b4222-f694-41f0-9685-ff5bb260df2e to use the Balanced plan.
Type a1841308-3541-4fab-bc81-f71556f20b4a to use the Power saver plan.
Type 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c to use the High performance plan.

You can also type the power scheme GUID for a custom power plan that you have created. To determine the GUID for all existing power schemes, type Powercfg /List at the command prompt, and then press ENTER."

i think this is all you need.
0
Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

 

Author Comment

by:Shifnal
ID: 39240636
is i create and save a power plan on say laptop 1 and then enter this reg line on laptop 2 will it work or do i have to copy anything from 1 to 2?
0
 
LVL 5

Accepted Solution

by:
MisterTwelve earned 500 total points
ID: 39240669
If laptop2 dont have this power plan, you need create them
the best options is:
POWERCFG -EXPORT <filename> <GUID> from Laptop1
and
POWERCFG -IMPORT <filename> <GUID> to laptop2
and Yes, you need to copy file of export command to destination laptop.


other options to add Registry settings for remote machine is:
reg add "\\Laptop2\HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ControlPanel\NameSpace\{025A5937-A6BE-4686-A844-36FE4BEC8B6D}" /v PreferredPlan /t REG_SZ /d a1841308-3541-4fab-bc81-f71556f20b4a /f

REG ADD KeyName [/v ValueName | /ve] [/t Type] [/s Separator] [/d Data] [/f]

  KeyName  [\\Machine\]FullKey
           Machine  Name of remote machine - omitting defaults to the
                    current machine. Only HKLM and HKU are available on remote
                    machines.
0
 

Author Comment

by:Shifnal
ID: 39240971
will give this a try and let you know, many thanks
0
 

Author Closing Comment

by:Shifnal
ID: 39252922
Very hellpful
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Preface Having the need * to contact many different companies with different infrastructures * do remote maintenance in their network required us to implement a more flexible routing solution. As RAS, PPTP, L2TP and VPN Client connections are no…
This article covers how to install the Microsoft Windows Operating System (OS). What is covered in this article:  > Different Versions and Editions of the Windows OS  > Upgrading versus Fresh Installation of the OS           - Steps to take pr…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
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). …

785 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