Jump to content

Recommended Posts

Posted

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?


Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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