Results 1 to 5 of 5

run shortcut as different user (windows 7)

This is a discussion on run shortcut as different user (windows 7) within the Windows 7 Support forums, part of the Microsoft Support category; Hello guys, Need some help here! Basically - I always log in under a normal user account (eg. ninetynemo). I ...

  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    3

    Default run shortcut as different user (windows 7)

    Hello guys,

    Need some help here!

    Basically - I always log in under a normal user account (eg. ninetynemo).
    I have local admin rights on the machine with that account BUT need to run some applications with my domain admin rights (adm-ninetynemo)

    This is what I've tried so far:
    edited the target with this cmdlet

    Code:
    C:\Windows\System32\runas.exe /savecred /user:adm-ninetynemo
    so in the program I want to run it will look like this:

    Code:
    C:\Windows\System32\runas.exe /savecred /user:adm-ninetynemo "C:\Program Files\Microsoft Configuration Manager Console\AdminUI\bin\adminconsole.msc"
    Now when I click the shortcut - it does run as, asking my credentials for the admin account..
    though it fails to run the application

    P.S. I don't wanna run a batch file / vba script for this - coz I know this should work.

  2. #2
    Junior Member
    Join Date
    Sep 2011
    Posts
    25

    Default

    See if this helps(assuming you're in Windows 7):

    Right-click the file, select 'Properties', click the 'Compatibility' tab and then select this option:

    windows7.jpg

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    3

    Default

    That's still local admin, is it not?

    Even if that works.. i'd still like to figure out how the runas works.
    Or rather .. why it keeps failing on me

    Edit:
    Btw.. it's not even an option 'cause config manager is a part of win7.
    So compmode isn't even activated:

    windows71.jpg

  4. #4
    Junior Member
    Join Date
    Apr 2011
    Posts
    17

    Default

    dunno if it's the solution you want, but hold shift then right click the application > run as different user

    as for what you're trying, is anything appearing in the event viewer after you enter your credentials to say why it might be failing? (might be on the DC log, not local)

  5. #5
    Junior Member
    Join Date
    Jul 2012
    Posts
    3

    Default

    Quote Originally Posted by Blogger View Post
    dunno if it's the solution you want, but hold shift then right click the application > run as different user

    as for what you're trying, is anything appearing in the event viewer after you enter your credentials to say why it might be failing? (might be on the DC log, not local)
    That's how I run the apps at the moment.
    The idea behind my runas is that it will save my creds & will always run under that account

    Update:

    I tried running the command in cmd which gave me following error

    193: C:\Program Files\Microsoft Configuration Manager Console\AdminUI\bin\adminconsole.msc is not a valid Win32 application.
    Though when I run the application without the runas command I doesn't give any problems

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •