Link to home
Start Free TrialLog in
Avatar of Andrew Theodoulou
Andrew Theodoulou

asked on

Trying to implement a 'Balanced Power Management' configuration in Task Sequence For A Reference Image (Windows 10)

Hello All,

I've tried Googling a solution to inserting a task sequence into a reference image to include a 'balanced power option' for a hybrid tablet:

Lenovo MIIX 320-10ICR

To which all i seem to find is only a task sequence for a 'high performance power configuration'. However only want the above for consistency. As these devices are being rolled out to the retail arm of the estate.

Therefore i wish to know if this is achievable, and if so by what is the best possible method to implement this configuration.
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Found this:
https://facility9.com/2015/07/controlling-the-windows-power-plan-with-powershell/

Note when you're sysprep'ing your reference image before capture the power setting is very likely lost. You'll have to add this task sequence step to the deployment of your captured image.
Avatar of Andrew Theodoulou
Andrew Theodoulou

ASKER

Sorry, i wasn't quite clear as to what i am trying to achieve, so apologies!

I wish to know if it's possible to customise the power options for:

Turn Off The Display - On Battery to (Never) - Plugged In (Never)

As also for the advanced Options too.

I hope this gives more clarity as to what result i wish to achieve.

Thanks :)
Power-Option-Management-Wishing-To-C.JPG
Advanced-Power-Options-To-Customise-.JPG
I'd create a custom power scheme plan on a reference machine, Export it. Then Import it to my machines and set it as active.
Details see here
https://www.tenforums.com/tutorials/43673-export-import-power-plan-windows-10-a.html
HTH
Hello Michael Pfister,

Firstly i greatly appreciate your input, regarding my query.

What i would like to ask is the following command line:

powercfg -import "%UserProfile%\Desktop\PowerPlanBackup.pow"

Is this only applicable to the individual user or all users? If not the latter, what would be the necessary amendment to make this applicable to all users, if applying this to a task sequence?

Many thanks in advance :)
Pretty sure the auther took %UserProfile%\\Desktop just to make locating the file easier.
powercfg changes the settings for all users,
In your case I'd create an application or package in SCCM and put the exported power scheme right there.
Hello Michael,

It's good to hear from you, once again :)

Okay, i understand that the command line path was to make the file appear on the desktop. Thank you to informing me that it will apply to all users.

I've a newbie to SCCM. As per mentioned, i wish to include this '.POW' as apart of task sequence for a reference image. This is where i'm stuck and would like to test it in my organisation's 'DEV' environment.

As always, your wisdom/input is greatly appreciated :)
Usually you create a package with the source file(s), in your case its just the .pow file.
Within this package create a program executing a script either batch or powershell

i.e. batch:
powercfg -import "%~dp0yourpowerscheme.pow"

Open in new window


%~dp0 expands to the folder where SCCM executes the script so it finds the file yourpowerscheme.pow

This package (after being distributed) can be added to the deployment task sequence of your OS.
HTH
Hi Michael,

Pardon my ignorance!!

By default i wish to run this as system process that is done during the 'audit mode' of Windows, not by the user.

Would i stand correct that the following command line.

powercfg -import "%~dp0PowerPlan_Balanced2.pow

in the command line, is effectively the same as if i were to write a .bat?

I don't know if i'm being comprehensive with the terminology/processes, if not then i apologise.

I greatly appreciate your patience, understanding and co-operation on this. :(
PowerCFG-Task-Sequence.JPG
ASKER CERTIFIED SOLUTION
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That is the result i'm trying to achieve, Michael.

I've just started with 'Task Sequence' within SCCM, thus i'm a newbie at present.

Hence as to where i'm currently stuck and wishing to achieve this result where the 'PowerPlan_Balanced2.pow' is predefined during sysprep audit mode.

If you happen to know of a solution to this, then this would be greatly appreciated please.
Can't give you an introduction to SCCM here, sorry.
I'm pretty sure power settings will be resetted during sysprep.
So I'd rather execute the powercfg.exe during the deployment task of your customized image.
As I wrote in my previous post create a packagae containing a script and the .pow file and let it execute as a step in your deploy task sequence.
Okay, I've done exactly as you'd kindly instructed me to do. The build had broken. So don't know what else to do or if you have a suggestion?
During which phase does the task sequence fail?
At the powercfg step?
Unfortunately i didn't check the logs, to see as to where it is failing exactly. School Boy, error on my part.
No feedback from asker