/build/static/layout/Breadcrumb_cap_w.png

K1000 and Windows 7 Power Management Script

I ran the Power Management Configuration Wizard to setup a custom power plan for Windows 7 machines. The script runs and creates the plan but fails to switch the active plan to it. What can I do to make the Custom Kace plan active across the machines I am testing this on?


0 Comments   [ + ] Show comments

Answers (4)

Answer Summary:
Posted by: Ben M 12 years ago
9th Degree Black Belt
2

I had the same problem. I had to create a second script that set the created power configuration as the active one.

I used these commands (see link) to find the GUID for the power configuration. Once I found the GUID I checked it on several different computers and found that it didn't vary from computer to computer. I would assume this would be the same for you, but you should probably check and make sure.

Once I found the GUID I just made a script that ran the command to set it as active (see link again). Hope this helps.

http://technet.microsoft.com/en-us/magazine/ff700230.aspx

Posted by: jraley 12 years ago
Yellow Belt
2

I believe the problem is that the script wizard auto checks the "Wait for startup" check in the steps. It appears that this does not work well when you are executing several steps with the powercfg.exe command in a script.

Posted by: jverbosk 12 years ago
Red Belt
1

I would check the script and verify that it has lines for IMPORT and for SETACTIVE.  Here's a batch file I use (during a Win7 scripted install) that imports a previously created custom power plan and makes it the active plan, for reference:

POWERCFG -IMPORT C:\KACE\Applications\98\win7.pow 00000000-0000-0000-0100-000000000000

POWERCFG -SETACTIVE 00000000-0000-0000-0100-000000000000

One other thing to mention is that I had mixed results with trying to replace (overwrite) an existing power scheme using this method.  I found creating a new scheme (i.e. using a completely different ID number) and setting it active to be consistently successful.

A final thing to try (if you haven't done so already) is to play with what account the script is running under - sometimes a script that is failing when running as system does just fine running as the current user (and for something like this, it shouldn't matter who it runs as, as long as the account has local admin rights).

John

Posted by: SMal.tmcc 12 years ago
Red Belt
0

Set your power settings via GPO's less hassles. when we tried on the pc's with scripts not all users got the settings, with GPO they do.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ