PDA

View Full Version : How can I execute a program with admin rights from a dosbox


Dave
December 5th 03, 01:51 AM
How can I execute a program with admin rights from a dosbox (when logged in as poweruser)
are there any parameters for that or any tools?

Blue Ice
December 5th 03, 01:51 AM
You can do this with the RUNAS command...
For more help type RUNAS /?

"Dave" > wrote in message
...
> How can I execute a program with admin rights from a dosbox (when logged
in as poweruser)
> are there any parameters for that or any tools?
>

Dave
December 5th 03, 01:51 AM
thx a lot

On Mon, 14 Jul 2003 14:18:04 +0200, "Blue Ice" > wrote:

>You can do this with the RUNAS command...
>For more help type RUNAS /?
>
>"Dave" > wrote in message
...
>> How can I execute a program with admin rights from a dosbox (when logged
>in as poweruser)
>> are there any parameters for that or any tools?
>>
>

Dave
December 5th 03, 01:51 AM
But I also want to add the password in the command?
runas is allways asking for the password


On Mon, 14 Jul 2003 14:18:04 +0200, "Blue Ice" > wrote:

>You can do this with the RUNAS command...
>For more help type RUNAS /?
>
>"Dave" > wrote in message
...
>> How can I execute a program with admin rights from a dosbox (when logged
>in as poweruser)
>> are there any parameters for that or any tools?
>>
>

jayloveroni
December 5th 03, 01:51 AM
I have tried this before. You can call a vbscript before
the run as command. The vbscript will send the password
keys after you have been prompted. Below is an example

rem call path to vbscript (example only)
\\server\share\vbscript
run as /user:domain\adminaccount "program.exe"
exit

vbscript contents should be

set WshShell = CreateObject("WScript.Shell")
WScript.Sleep 1
WshShell.SendKeys "PASSWORD"
WScript.Sleep 1
WshShell.Sendkeys "{ENTER}"
set WshShell = nothing

the only value you have to enter is the password. only
problem with this is you have a password for an actual
account exposed.

have fun.


>-----Original Message-----
>But I also want to add the password in the command?
>runas is allways asking for the password
>
>
>On Mon, 14 Jul 2003 14:18:04 +0200, "Blue Ice"
> wrote:
>
>>You can do this with the RUNAS command...
>>For more help type RUNAS /?
>>
>>"Dave" > wrote in message
...
>>> How can I execute a program with admin rights from a
dosbox (when logged
>>in as poweruser)
>>> are there any parameters for that or any tools?
>>>
>>
>
>.
>

Google