Jump to content

Edit Power Schemes via registry


TheReasonIFail

Recommended Posts

OK,

I'm trying to make changes to the Laptop/Portable power scheme on all our laptops.

I made the changes I needed done to a laptop, did a reboot and exported the following keys:

[HKEY_CURRENT_USER\Control Panel\PowerCfg]

[HKEY_USERS\.Default\Control Panel\PowerCfg]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Controls Folder\PowerCfg]

Now I've imported them into another laptop and the changes are not showing up, not even after a reboot.

What am I missing?

Link to comment
Share on other sites


I wrote a VBS script that should restore the default power scheme.

Save as DefaultPowerScheme.vbs

Dim Act :Set Act = CreateObject("Wscript.Shell")
Dim Fso :Set Fso = CreateObject("Scripting.FileSystemObject")
Dim Pwr :Pwr = Act.ExpandEnvironmentStrings("%Windir%\System32\Powercfg.exe")

If Fso.FileExists(Pwr) Then
Act.Run("Powercfg.exe /RestoreDefaultPolicies"),0,True
MsgBox "Restore Default Power Scheme Completed",4128,"Finished"
Else
MsgBox "Missing : " & Pwr & vbCrLf & "Can Not Restore The Default Power Scheme", 4128, "No Powercfg.exe"
End If

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...