Link to home
Start Free TrialLog in
Avatar of aravind anche
aravind ancheFlag for United States of America

asked on

Setting power options for laptops after deploying from MDT

Is there any setting  in MDT that can set the power options when plugged on.  I currently have

On battery
Dim the display: 2minutes
turn of display: 5 minutes
put the computer to sleep:15 min

plugged in
Dim the display: 5minutes
turn of display: 10minutes
put the computer to sleep:never

I want them change to
Battery
Dim the display: 5minutes
turn of display: 10 minutes
put the computer to sleep:15 min

plugged in
Dim the display: never
turn of display: 30 minutes
put the computer to sleep: never

Is that possible?
Avatar of Joseph Moody
Joseph Moody
Flag of United States of America image

You could use PowerCFG.exe to export an existing power scheme that you create on a machine. Then create an application in MDT that calls Powercfg.exe with the /import command - it would then import your scheme.

Add the application as a step in your task sequence and you will be golden!
Avatar of aravind anche

ASKER

Thanks for the response
I captured image in VM so there are no power options.
Can you provide me with couple more details.

Thanks
On your computer, configure the power options that you want. Then use powercfg.exe /export. Copy that file to a share that the MDT server can see.

Then create a new application that calls a batch file. First line for batch file:

powercfg.exe /import NAMEOFFILEHERE (don't put a filepath - MDT will use the application's source path to set the working directory). GUID (generate a GUID online)

Second line of batch file:

powercfg.exe /S GUID_FROM_BEFORE


Now add that application to your task sequence in MDT under the Install Applications section (post OS). It will import your power settings and make them active.
Trying to export but getting message invalid parameters
What's your exact command?
powercfg.exe /export GUID
Also I tried
powercfg.exe -export GUID
powercfg -export GUID
powercfg /export GUID

or Can I create a batch file ?
You need to specify a GUID. https://guidgenerator.com/
yes I used powercfg list
and from the options I copied the GUID of balanced.
I exported the file now. I will copy that to deployment share scripts folder and create a  command line in TS at the end and give the import command. Is that right?
SOLUTION
Avatar of aravind anche
aravind anche
Flag of United States of America 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
ASKER CERTIFIED SOLUTION
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
Thanks David