Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Powerplan setting by unattend.xml


  • Please log in to reply
10 replies to this topic

#1
atolica

atolica

    ENT Surgeon

  • Member
  • PipPip
  • 218 posts
  • Joined 15-December 05
  • OS:Windows 7 x86
  • Country: Country Flag
Has anyone noticed that you can't set the powerplan (high performance or other) by WSIM(WAIK) in Windows 7? I'm using the latest WAIK.

Whatever I tried, the default powerplan is always set.


How to remove advertisement from MSFN

#2
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,253 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
Use a script on oobeSystem to set the power plan, it will "fix" it.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#3
atolica

atolica

    ENT Surgeon

  • Member
  • PipPip
  • 218 posts
  • Joined 15-December 05
  • OS:Windows 7 x86
  • Country: Country Flag
Hi Cluberti

That's what I thought. I'm running powercfg by setupcomplete.cmd from the scripts folder


I asked this in another thread .

What is the proper way of running a batch file using wsim?
I want to add script batch file (*.cmd) execution by running a synchronous command at oobe step.
I know that it should start with "cmd /c ....", but what about the path? I don't have a network share I could use. Environment variables maybe? I don't want the batch files to be copied on the computer I'm installing, I'd rather run them directly from the dvd. Is that possible???

#4
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,253 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag

Hi Cluberti

That's what I thought. I'm running powercfg by setupcomplete.cmd from the scripts folder


I asked this in another thread .

What is the proper way of running a batch file using wsim?
I want to add script batch file (*.cmd) execution by running a synchronous command at oobe step.
I know that it should start with "cmd /c ....", but what about the path? I don't have a network share I could use. Environment variables maybe? I don't want the batch files to be copied on the computer I'm installing, I'd rather run them directly from the dvd. Is that possible???

It's possible, but you'll still need a "stub" cmd to launch it on the local disk. In general, I use a .cmd file that does a simple for loop to find a file that will be on the CD, and assign any drive letter it finds that file on to the CD drive as an environment variable, for example, looking for a CD.txt file at the root of the CD drive that I place in my ISO before burning:

FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%

MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#5
kevin34

kevin34

    Newbie

  • Member
  • 25 posts
  • Joined 16-April 10
  • OS:Windows 7 x64
  • Country: Country Flag
Howdy, has anyone figured out how to set this via unattended. I have tried WAIK and just tried adding a key in my HKLM.reg file and neither worked. If the answer is a script with powercfg.exe how do you run that? I am trying to set the monitor to turn off after ten minutes and leave everything else on all the time. Thank you for any help on the matter. Have a good one.

Kevin

#6
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
include these in a .cmd file or in <FirstLogonCommands>
REM High performance
POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
REM monitor to turn off after ten minutes
POWERCFG -Change -monitor-timeout-ac 10

Edited by maxXPsoft, 02 October 2010 - 06:51 PM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#7
kevin34

kevin34

    Newbie

  • Member
  • 25 posts
  • Joined 16-April 10
  • OS:Windows 7 x64
  • Country: Country Flag

include these in a .cmd file or in <FirstLogonCommands>
REM High performance
POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
REM monitor to turn off after ten minutes
POWERCFG -Change -monitor-timeout-ac 10


Hey Max, thanks a bunch for the reply. I should be able to use that command. Will that also keep the system from entering standby? Also, is it possible to create a custom power scheme where everything is set to never turn off or idle and import that, or is that what High Performance will do? Thanks again, have a good day.

Kevin

#8
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Hey Max, thanks a bunch for the reply. I should be able to use that command. Will that also keep the system from entering standby? Also, is it possible to create a custom power scheme where everything is set to never turn off or idle and import that, or is that what High Performance will do? Thanks again, have a good day.

Kevin

you will have to use Cmd /c POWERCFG with these unless they are in a .cmd file
My settings
POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
POWERCFG -X -monitor-timeout-ac 120
POWERCFG -X -disk-timeout-ac 120
POWERCFG -X -standby-timeout-ac 120
POWERCFG -X -hibernate-timeout-ac 120
or hibernate OFF
POWERCFG -H OFF

Edited by maxXPsoft, 04 October 2010 - 06:11 PM.

Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#9
kevin34

kevin34

    Newbie

  • Member
  • 25 posts
  • Joined 16-April 10
  • OS:Windows 7 x64
  • Country: Country Flag

My settings
POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
POWERCFG -X -monitor-timeout-ac 120
POWERCFG -X -disk-timeout-ac 120
POWERCFG -X -standby-timeout-ac 120
POWERCFG -X -hibernate-timeout-ac 120
or hibernate OFF
POWERCFG -H OFF


Thanks again Max. I am going to try the commands manually in a moment. Apologies for being tedious. Have a good one.

Kevin

Edited by kevin34, 07 October 2010 - 08:26 PM.


#10
maxXPsoft

maxXPsoft

    MSFN Master

  • Developer
  • 2,889 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
I have used them as above and is working on a UA and will work anyways. Better yet my hard drive no longer thrashing off/on setting these to 120 minutes. Now if I could get it to quit spinning up dvd when I open explorer be a good thing.
Download ++> Windows 7 + 8 Unattended DVD + App Installer + Services Disabler + Load All Button + XML Creator
Jump2Reg - Registry: - Oct 4, 2013 - Version 3.0.4 - 98, ME, NT, 2K, XP, VISTA, Seven, Windows 8+ and 32 or 64 bit

XP Unattended CD/DVD creator - Version 4.1.7
Sample xml + Setupcomplete + Add Right click .wim Windows 7 or Windows 8/8.1

#11
myselfidem

myselfidem

    Member

  • Member
  • PipPipPipPipPipPipPipPip
  • 2,559 posts
  • Joined 06-January 10
  • OS:Windows 7 x64
  • Country: Country Flag

include these in a .cmd file or in <FirstLogonCommands>
REM High performance
POWERCFG -SETACTIVE 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
REM monitor to turn off after ten minutes
POWERCFG -Change -monitor-timeout-ac 10


Many thanks!

Seems the best way to change power settings with Autounattend.xml file! Tested and works really fine.
For Windows 7 OS: SetProductKey.rar (fr-FR/en-US. Integrate keys).




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users