This is more in the nature of a technical question, although it does affect Power4Gear Hybrid on my G51.
I've installed Windows 7 on my new Asus G51Vx-A1, and per good security practice, I'm aiming to normally run as a standard user (with a separate administrator account when needed). The problem is that Power4Gear Hybrid relies on BatteryLife.exe, which requires administrative privileges to run, so this doesn't work for standard users. The consequences? I, as well as a few other people, have noticed that with a default installation, the Power shortcut to Power4Gear Hybrid and the keyboard hotkeys won't work unless you manually go and run BatteryLife.exe (which then pops up the escalation message box, as expected).
So: how is it possible to run BatteryLife.exe, escalated, and interacting with the current desktop session?
Notes:
Anybody have any other suggestions?
- The default installation runs BatteryLife.exe via Task Scheduler, running for the group Administrators, triggered on login of Administrators, with auto-elevated privileges. This is why when administrators log in, Power4Gear works as expected.
- I've tried creating a parallel task for testing purposes in Task Scheduler, running as System or Local Service, triggered on any login, with auto-elevated privileges. It seems that BatteryLife.exe does get launched, but not in a way that can interact with the user's desktop.
- I tried doing the above using PsExec to try and force interactivity with the user's desktop. Same results as above.
- I've created a service (using instsrv and srvany) to launch BatteryLife.exe, with the checkbox for "Allow service to interact with desktop". Same results as above.
- I've tried doing the above with PsExec to, once again, try and force interactivity with the user's desktop. Same results as above.
-
I purchased the K70AB notebook with installed Windows 7 and I have same troubles, BatteryLife.exe is not executed while I using standard user login.
I found the following solution:
- Create new local user group named "ASUS Utility Users". Add admins and standard users to group membership.
- Go to the Task Scheduler and replace Administrators group by "ASUS Utility Users" group.
- Install resource editor for executable files, for example, Visual Studio 2005
or other. Open BatteryLife.exe in editor and modify file manifest, change requested execution level from "requireAdministrator" to "highestAvailable".
- Rename original file BatteryLife.exe to BatteryLife_orig.exe. Save and copy to target directory new patched programm BatteryLife.exe.
All done.
Some information about manifest (UAC): http://msdn.microsoft.com/en-us/library/bb756929.aspx -
-
This sounds great! Any possibility that you could upload a patched BatteryLife.exe for the less experienced user? Would be very appreciated. I have BatteryLife.exe v1.1.0.1, from P4G v1.1.24
-
http://depositfiles.com/files/vdu92sm0i - patched setup 64 bit platform
Here's your patched utility setup. Enjoy!
But I have not tested this fix. -
Thanks ViPetroFF so much!
So far so good on Win7 x64... Do you also need to enter your password every time you open P4G Hybrid?
--
Device Power Management doesn't seen to be able to en/disable devices -
P4GXUI.EXE is patched too
, its all right!
Im tested this fix on Win7 x64, its worked fine!
Under standard user not needed enter admin password for execute P4G Hybrid. But under admins account may be needs to grant Admins privileges.
Not forget following steps:
1.Create new local user group named "ASUS Utility Users". Add admins and standard users to group membership.
2.Go to the Task Scheduler and replace Administrators group by "ASUS Utility Users" group. -
Standart User have access to the Device Power Management without elevating rights.
Why ASUS guys are using requireAdministrator execution level for Power4Gear?
I don't know! -
-
Problem with this is I have Windows 7 Home Premium which does not allow creation of local user groups? Any other ideas
Power4Gear + Standard user accounts?
Discussion in 'Asus' started by Sogarth, Sep 4, 2009.