TheReasonIFail Posted May 15, 2009 Posted May 15, 2009 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?
cluberti Posted May 16, 2009 Posted May 16, 2009 Why do it the hard way when you could do it the easy way?
gunsmokingman Posted May 17, 2009 Posted May 17, 2009 I wrote a VBS script that should restore the default power scheme.Save as DefaultPowerScheme.vbsDim 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
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now