I am trying to get my system stand by setting to “Never” for all desktops and “Never” while “Plugged In” for laptops… If I can only get it to “Never” period and not just for the plugged in for laptops I’d be fine with that…
I tried changing the power profile key in the registry and that is working, however, it’s not changing the settings beneath it…
The key is HKEY_CURRENT_USER\Control Panel\PowerCfg and the value is CurrentPowerPolicy… To see what I mean, open up your power properties and cycle through the power schemes… You’ll see the values change in the drop downs below it…
However, if you change the value in the registry you’ll see that in the power properties the power scheme changes but the settings below don’t!
if {(it as lowercase contains "xp" or it as lowercase contains "2003") of name of operating system}
runhidden {(pathname of system folder)}\powercfg.exe -s "Always On"
endif
if {(it as lowercase contains "win7" or it as lowercase contains "2008") of name of operating system}
runhidden {(pathname of system folder)}\powercfg.exe -s 8c5e7fda-e8bf-4a96-9a85-a6e23a8c635c
endif
Very strange… When I run that action through the console to the client it fails and I confirmed by checking the power settings… However, when I run that same exact action on a client through the debugger it works and changes the power settings. :S
Ok, after working with support to find out why it’s failing it was something extremely stupid… I created it as a fixlet instead of a task and the relevance was set to “true”…
Anywho, this is working great… Now, anyone know a relevance I can use to deploy this? Is there a way to query the values for system standby and have it relevant to any system where standby never?
I would still like to get this relevance working for XP systems… Basically I want to know if any PC’s have standby enabled. Whether it be 1 minute or 60 minutes, I don’t care, just that it’s enabled…
I’m not sure if that’s possible though…
I know I can do something like this:
value "CurrentPowerPolicy" of key "Control Panel\PowerCfg" of current user keys (logged on users) of registry is "1"
However, the system standby can still be enabled even if the Power Profile is “Always On”