Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows API
  4. Vista UAC: run as another user with admin rights

Vista UAC: run as another user with admin rights

Scheduled Pinned Locked Moved Windows API
csharphelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mSh1985
    wrote on last edited by
    #1

    I posted this question on the c# forum, but they sent me here, so i'll post it here again. situation: i have a program which has a function which needs to be run with elevated rights,but it has to be the elevated rights from another user (the domain administrator) Maybe this is not clear at all, so i'll specify my question user1 runs an application user1 presses a button which results in running another application this other application has a manifest file which says to the uac that it needs to be runned with elevated rights. Vista prompts me if i want to run this application with elevated rights (from user1, with no posibility to give other credentials) But i don't want this second application to be run with elevated rights from user1, but from user2 (user2 is a domain administrator, user1 is not) Over the shoulder credentials is turned of on every pc here, so there is no way the user1 can change to user2 (his domain administrator account). I've been googling for a solution for this problem, but i cannot find anything useful. Is there anyone who can point me in the right direction. I only want vista to prompt me for giving a user and pasword for running this application as a domain admin.. Thanks in advance to anyone who can point me in the right direction

    E 1 Reply Last reply
    0
    • M mSh1985

      I posted this question on the c# forum, but they sent me here, so i'll post it here again. situation: i have a program which has a function which needs to be run with elevated rights,but it has to be the elevated rights from another user (the domain administrator) Maybe this is not clear at all, so i'll specify my question user1 runs an application user1 presses a button which results in running another application this other application has a manifest file which says to the uac that it needs to be runned with elevated rights. Vista prompts me if i want to run this application with elevated rights (from user1, with no posibility to give other credentials) But i don't want this second application to be run with elevated rights from user1, but from user2 (user2 is a domain administrator, user1 is not) Over the shoulder credentials is turned of on every pc here, so there is no way the user1 can change to user2 (his domain administrator account). I've been googling for a solution for this problem, but i cannot find anything useful. Is there anyone who can point me in the right direction. I only want vista to prompt me for giving a user and pasword for running this application as a domain admin.. Thanks in advance to anyone who can point me in the right direction

      E Offline
      E Offline
      Electron Shepherd
      wrote on last edited by
      #2

      Does CreateProcessAsUser help?

      Server and Network Monitoring

      M 1 Reply Last reply
      0
      • E Electron Shepherd

        Does CreateProcessAsUser help?

        Server and Network Monitoring

        M Offline
        M Offline
        mSh1985
        wrote on last edited by
        #3

        Hi, thanks for the reply I have other priorities at work at the moment, so i have no time to test it right away. But once i've tested it, i'll post my findings here.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups