Solved

power settings scripting

Posted on 2013-06-11
7
235 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

 

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
windows 7 system recovery 5 73
incoming emails directly forwarded to "recovery deleted items folder" 9 87
online backup for win98se 30 66
outlook 2007 + exchange 5 40
My purpose is to describe the basic concepts of virtual memory as implemented in a modern Windows-based operating system. I will also describe the problems inherent in older systems and how virtual memory solves them. The dark ages - before virtu…
by Nathan Brom/Bromy2004 Introduction There are numerous websites out there for any different type of program you can imagine.  Of those, you'll need to decide which ones are legitimate and aren't trying to steal your money or infect your comput…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

751 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