How does "runas" work "under the covers"

Discussion in 'Microsoft Dot NET Framework Forms' started by kenstern, Jul 10, 2012.

  1. kenstern

    kenstern

    Joined:
    Jul 10, 2012
    Likes Received:
    0
    I have an application that needs to start a process as a different user. I use CreateProcessWithLogonW to accomplish this, but I've run into a system configuration where this does not work (we've been trying for weeks to diagnose WHY this particular system is causing problems with no luck so far). On the other hand, doing a "runas" from the command line works fine. So, I was wondering, does anyone know what system calls "runas" is making? Perhaps that will give me a clue as to how to solve my problem.
     
    kenstern, Jul 10, 2012
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Juan C. Olivares

    Why this does not work?

    Juan C. Olivares, Jul 11, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    2
    Views:
    2,073
    Juan C. Olivares
    Jul 12, 2003
  2. Joe White

    Re: Zero touch deployment does not work

    Joe White, Aug 9, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    7
    Views:
    323
    Sean Kessinger
    Aug 11, 2003
  3. Andrew Wiles

    Shaped Forms - Transparency does not work (sometimes)

    Andrew Wiles, Aug 29, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    1
    Views:
    242
    Justin Rogers
    Aug 30, 2003
  4. Alex

    ListView.SelectedIndices does not work

    Alex, Sep 9, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    461
  5. P

    Acceptbutton does not work in usercontrols.

    P, Sep 10, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    0
    Views:
    526
  6. Kueishiong Tu

    How does the main thread know when the work thread has finished?

    Kueishiong Tu, Sep 12, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    3
    Views:
    393
    Tobin Harris
    Sep 12, 2003
  7. Wayne Gibson

    CreateProcessWithLogonW And RunAS

    Wayne Gibson, Oct 16, 2003, in forum: Microsoft Dot NET Framework Forms
    Replies:
    4
    Views:
    6,103
    Ying-Shen Yu[MSFT]
    Oct 17, 2003
  8. Guest

    Set 'RunAs' property programmatically for WinForms VB.Net applicat

    Guest, Jan 21, 2005, in forum: Microsoft Dot NET Framework Forms
    Replies:
    1
    Views:
    626
    Kevin Yu [MSFT]
    Jan 22, 2005
Loading...