Results 1 to 2 of 2

Thread: Run executable as a different user

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2002
    Location
    Canada
    Posts
    30

    Run executable as a different user

    Does anyone know the code to run an executable as another user?

    I'm running a small vb program during login which queries computers using WMI. For the most part, it works fine running under the user who is logging in. However, there are a few calls which need to be made as a local admin...

    Any ideas?

  2. #2
    Frenzied Member blindlizard's Avatar
    Join Date
    Feb 2001
    Location
    Austin, TX - United States of America
    Posts
    1,141
    I have done sothing similar for a web app. I call a process to run, but I don't want it to use the IUSR_ account. What I did was I called an executable that then called a DLL I placed in COM+ (or MTS on NT4). Then in COM+, I designated the DLL to run as a different account.
    I drink to make other people more interesting!
    [vbcode]On Error GoTo Bar[/vbcode]
    http://www.monsterlizard.com

Posting Permissions

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



Click Here to Expand Forum to Full Width