The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Power4Gear + Standard user accounts?

    Discussion in 'Asus' started by Sogarth, Sep 4, 2009.

  1. Sogarth

    Sogarth Notebook Consultant

    Reputations:
    25
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    30
    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:
    • 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. :mad:
    • I tried doing the above using PsExec to try and force interactivity with the user's desktop. Same results as above. :mad:
    • 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. :mad:
    • I've tried doing the above with PsExec to, once again, try and force interactivity with the user's desktop. Same results as above. :mad:
    Anybody have any other suggestions?
     
  2. ViPetroFF

    ViPetroFF Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    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:

    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.
    3. Install resource editor for executable files, for example, Visual Studio 2005 :eek: or other. Open BatteryLife.exe in editor and modify file manifest, change requested execution level from "requireAdministrator" to "highestAvailable".
    4. 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
     
  3. surfasb

    surfasb Titles Shmm-itles

    Reputations:
    2,637
    Messages:
    6,370
    Likes Received:
    0
    Trophy Points:
    205
    This should work.
     
  4. brstorm

    brstorm Newbie

    Reputations:
    0
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    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
     
  5. ViPetroFF

    ViPetroFF Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    http://depositfiles.com/files/d3jl621k8 - patched setup 32 bit platform

    http://depositfiles.com/files/vdu92sm0i - patched setup 64 bit platform

    Here's your patched utility setup. Enjoy!

    But I have not tested this fix.
     
  6. brstorm

    brstorm Newbie

    Reputations:
    0
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    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
     
  7. ViPetroFF

    ViPetroFF Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    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.
     
  8. ViPetroFF

    ViPetroFF Newbie

    Reputations:
    0
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    5
    Im not sure that Device Power Management require Administrators privileges. :confused:
    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! :confused:
     
  9. tino_tt

    tino_tt Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    The patched version is 1.1.24 (see details in installed programm list). Does anyone know the changes in version 1.1.27 available at the asus download page? Is there a patch available for this newer version?
     
  10. smaloney

    smaloney Newbie

    Reputations:
    0
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    Problem with this is I have Windows 7 Home Premium which does not allow creation of local user groups? Any other ideas