Results 1 to 9 of 9

Thread: Need to run my program as Administrator . . .

  1. #1

    Thread Starter
    Frenzied Member Skitchen8's Avatar
    Join Date
    Feb 2001
    Location
    Binghamotn, NY
    Posts
    1,943
    yes, but that involved using the run as to run it as a service... so what you could do is create a vb app that runs the batch file, sendkeys the password, sendkeys enter, and then it should work on its own right?
    Government is another way to say better…than…you.
    It’s like ice but no pick, a murder charge that won’t stick,
    it’s like a whole other world where you can smell the food,
    but you can’t touch the silverware.
    Huh, what luck. Fascism you can vote for.
    Humph, isn’t that sweet?
    And we’re all gonna die some day, because that’s the American way
    -Stone Sour

  2. #2
    Armbruster
    Guest
    Thank you, I appreciate the idea.


    That might work, I will try it tomorrow. I tried piping the password to the runas command at the beginning of the batchfile to no avail . . .

    echo <password>|runas /user:adminstrator regedit /e update.reg
    . . . but the runas command didn't like the pipe to well!

    I will try send keys and see if that can do it. If anyone has any other ideas, I am all ears.

  3. #3
    Armbruster
    Guest
    Hmmm, I couldn't figure out why I couldn't get that to work, then I read this . . .

    Note You can't use SendKeys to send keystrokes to an application that is not designed to run in Microsoft Windows. Sendkeys also can't send the PRINT SCREEN key {PRTSC} to any application.
    . . . Any other ideas?

  4. #4
    Armbruster
    Guest
    I thought I would bump this to the top to give it new life before it dies

    I tried NTRIGHT.EXE but must also be logged on as an administrator. I need something like ntrights.exe that lets me enter the admin password!

    I desperatly need an NT hacker!! Help!!

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    There's a CreateProcessAsUser API Call. I haven't tried to use it, check www.allapi.net , etc.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  7. #7
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342

    v too r facing the same situation...

    We have an application in 3-tier, with VB 6 as front end and DLLs (i.e COM+ components) also in VB6
    and Oracle 8.1.5 as Back end for database.
    This application runs under windows 2000 environment with around 500 active users.

    Each time the dlls r modified it needs to be registered on each and every client.

    Currently vr asking the end users to log on locally as local administrator and register.

    Hope a solution for ur prob will also help us...

  8. #8
    Armbruster
    Guest
    Thank you for the idea!!!!!!!!!!!!!!!!!!!

    I will try it now!!


    Hope a solution for ur prob will also help us...
    If I find a solution, I will be happy to pass it along!

  9. #9
    Armbruster
    Guest
    Only works in Windows 2000 and later

    There has to be a way to do this!!!

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