Tweak for 'run as different user' option on taskbar shortcut


  1. Posts : 2
    Windows 7 Pro x64
       #1

    Tweak for 'run as different user' option on taskbar shortcut


    There is a registry hack available to stop you having to use the shift key when using the right click menu to run as a different user - see
    https://www.sevenforums.com/tutorials/155532-run-different-user-without-shift-right-click-context-menu.html This works fine if you are in Windows explorer but if you have pinned the program to the task bar, it doesn't work adn you still have to hold the shift key down and right click to get the 'run as different user' option on the menu. Does anyone know of a way to permanently set a shortcut on the taskbar to be run as a different user to the one you are logged in as ?
      My Computer


  2. Posts : 934
    Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
       #2

    You need to put there a shortcut for batch file instead with content like this:
    Code:
    Runas /user:johnDoe "C:\mycommand.exe"
    More info on Runas command.
      My Computer


  3. Posts : 2
    Windows 7 Pro x64
    Thread Starter
       #3

    Thanks - much appreciated
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:40.
Find Us