Windows Client TechCenter > Windows 7 Forums > Windows 7 User Interface > Taskbar & Start Menu Bug: App Shortcuts set to Run as Admin don't open pinned/recent files in RaA
Ask a questionAsk a question
 

AnswerTaskbar & Start Menu Bug: App Shortcuts set to Run as Admin don't open pinned/recent files in RaA

  • Thursday, May 14, 2009 12:52 AMa.k.a. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    This is pretty self-explanatory.

    Run in Admin does not kick in when launching a file via a Taskbar's pinned app icon, even when the pinned app has been set to 'Run in Admin' mode (under Properties -> Advanced).

    The same thing happens in the Start Menu -- the app can be set (Properties -> Advanced) to Run in Admin mode, and the file does not launch this way.

    Why is this a problem?  Because if one is supposed to use accounts like MS asks, then running as a standard user after having a file created in an admin account, that user cannot alter the doc in any way -- no saves work.  At least this is true for files not on the C partition.  The only way W7 permits saves is to run an app in Admin mode.

    (I've run into this countless times in the span of a few days with Notepad & PSPad.)

    If the W7 team wants to insist that docs won't automatically run in Admin mode under these conditions (which they should!!!!!!), then at least give users a right-click context menu option to Run as Admin from the recent/pinned items list.  Currently there is no such context menu option.

    Thereby, all recent items / pinned items are rendered a useless feature.....

    Still loving this OS.

    a.k.a.

Answers

  • Saturday, May 23, 2009 2:06 PMMark L. FergusonMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You want a non-admin user to run a restricted operation. You can easily set the CMD icon to it's Properties to always 'run as administrator'. You can open any app 'as admin' with it. The non-admin user, however could not approve the dialog to open CMD and run an app.
    Rating posts helps other users
    Mark L. Ferguson MS-MVP

All Replies

  • Friday, May 15, 2009 3:00 PMMark L. FergusonMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    It's your impression that setting the 'run as admin' setting should avoid the prompt, but that is not expected behavior. If you choose to 'run as admin', anytime, you get the 'are you sure' dialog. The level of doing that is set in a setting for the UAC in User Accounts, in Control Panel.
    That is not to say you cannot override the expected behavior, it's just more complicated than that. There are third party apps out there, and several built in ways, none of which are really that easy. A scripting solution, or a scheduled task set to run with full rights will do it. An IT Pro will have utilities available that will build a 'shim' for old apps their corporate environment can't upgrade, or do without.
    Rating posts helps other users
    Mark L. Ferguson MS-MVP
  • Saturday, May 16, 2009 11:42 PMa.k.a. Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Mark,

    We may be talking past each other. I may not have explained correctly, and I'm not sure I understand the intent of your reply.

    The prompt is a lesser concern.  One can live with it.

    What matters is that an app that is pinned to the Taskbar / Start Menu in order to be launched in 'Run as Admin' do so when expected to.

    The reason I know that these apps are NOT launching in Run as Admin mode under the above conditions is this:

    When the "pinned" file that is associated with the "pinned app" has been created or used by an admin, and then launched by a non-admin user, these files are not permitted to save to disk.

    That is a pain to deal with if you follow MS protocol and set up two accounts at different privilege levels.

    Does the problem make better sense now?

    An app pinned to Taskbar or Start Menu can be set in Run as Admin mode, but "pinned files" available to that pinned app will not run in Run as Admin mode.  Nor, in that "pinned" menu, is there a right-click context option that will let you run those pinned files in Run as Admin mode.  There is only a right-click "Open" option.  Even the "Properties" context option does NOT contain a "Run as Admin" check box option.

    Often, the whole point of pinning an app in the Taskbar or Start Menu is quick access to run a set of files in Run as Admin mode.  That requirement is not addressed by Win 7.

    a.k.a.
  • Saturday, May 23, 2009 2:06 PMMark L. FergusonMVP, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    You want a non-admin user to run a restricted operation. You can easily set the CMD icon to it's Properties to always 'run as administrator'. You can open any app 'as admin' with it. The non-admin user, however could not approve the dialog to open CMD and run an app.
    Rating posts helps other users
    Mark L. Ferguson MS-MVP