Link to home
Start Free TrialLog in
Avatar of Resonetics
Resonetics

asked on

PowerShell to set a powerplan active

I am in the process of writing a script to configure a number of settings on Conference Room PC's.

Using powercfg.exe I am able to import the correct power scheme.

The problem I am having it with actually setting it.  The GUID is differemt each time you import it.  

This is what i have so far:

#Import and Set Power Settings
powercfg -import c:\cr\crsch.pow
Start-Sleep -s 15
powercfg -setactive e158c791-357b-43cf-bebf-64cc68aceb1a

Is there a way to setactive by "friendly name?"

Thanks,

Geoff
ASKER CERTIFIED SOLUTION
Avatar of Resonetics
Resonetics

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