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?
Printable View
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?
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 . . .
. . . but the runas command didn't like the pipe to well!Quote:
echo <password>|runas /user:adminstrator regedit /e update.reg
I will try send keys and see if that can do it. If anyone has any other ideas, I am all ears.
Hmmm, I couldn't figure out why I couldn't get that to work, then I read this . . .
. . . Any other ideas? :(Quote:
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.
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!!
There's a CreateProcessAsUser API Call. I haven't tried to use it, check www.allapi.net , etc.
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...
Thank you for the idea!!!!!!!!!!!!!!!!!!!Quote:
I will try it now!!
If I find a solution, I will be happy to pass it along!Quote:
Hope a solution for ur prob will also help us...
Only works in Windows 2000 and later :(
There has to be a way to do this!!!