Hi there!
I would like to know if there is a way to locally run a program with
different credentials form those of the current user, without invoking the
"runas" command. In other words I need vbscript code who launch an
application with an username and password provided as variables in the code
itself, without asking the user. I tried WMI, using
"WbemScripting.SWbemLocator" object and "objLocator.ConnectServer" method
but they only works remotely, not locally.
Any idea?
Thanks in advance,
Bye
Andrea

Re: runas substitute by W

W
Tue Jan 24 22:35:22 CST 2006

Most people I know use a utility program called PSEXEC.EXE to do this.
PSEXEC is part of the PSTOOLS suite. This suite of tools is Freeware
available at www.sysinternals.com. Give it a shot.

P.S. Download all the PSTOOLS as most do things on remote PC's like list
processes, kill processes, shutdown.

"Andrea Nunnari" <nunnari@istat.it> wrote in message
news:%23NOV3xPIGHA.2036@TK2MSFTNGP14.phx.gbl...
> Hi there!
> I would like to know if there is a way to locally run a program with
> different credentials form those of the current user, without invoking the
> "runas" command. In other words I need vbscript code who launch an
> application with an username and password provided as variables in the
> code itself, without asking the user. I tried WMI, using
> "WbemScripting.SWbemLocator" object and "objLocator.ConnectServer" method
> but they only works remotely, not locally.
> Any idea?
> Thanks in advance,
> Bye
> Andrea
>
>
>



Re: runas substitute by Markus

Markus
Wed Jan 25 23:42:10 CST 2006


> Hi there!
> I would like to know if there is a way to locally run a program with
> different credentials form those of the current user, without invoking the
> "runas" command. In other words I need vbscript code who launch an
> application with an username and password provided as variables in the
> code


Try the tool runasSpc on
http://www.robotronic.de/runasspcEn.htm
it will never be asked for a password because it is in a encrypted file.
You can also use the tool without encryption to enter the password directly.
runasspc.exe /program:"C:\Programme\Windows NT\Pinball\pinball.exe"
/domain:"localhost" /user:"testadmin" /password:"password"



Re: runas substitute by Andrea

Andrea
Thu Jan 26 02:45:54 CST 2006

Many thanks, folks!
Andrea

"Markus Milos" <mami32@webmail.com> ha scritto nel messaggio
news:43d86135$0$18976$ed362ca5@nr3.newsreader.com...
>
>> Hi there!
>> I would like to know if there is a way to locally run a program with
>> different credentials form those of the current user, without invoking
>> the "runas" command. In other words I need vbscript code who launch an
>> application with an username and password provided as variables in the
>> code
>
>
> Try the tool runasSpc on
> http://www.robotronic.de/runasspcEn.htm
> it will never be asked for a password because it is in a encrypted file.
> You can also use the tool without encryption to enter the password
> directly.
> runasspc.exe /program:"C:\Programme\Windows NT\Pinball\pinball.exe"
> /domain:"localhost" /user:"testadmin" /password:"password"
>