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-64 cc68aceb1a
Is there a way to setactive by "friendly name?"
Thanks,
Geoff
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-64
Is there a way to setactive by "friendly name?"
Thanks,
Geoff
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.