Runas



bahri
07-10-2005, 02:32 AM
Hi all!
I am trying to use the Runas command on windows Xp.
Now I had a look at what's on the web, forums etc. and it seems I'm not the
only one with this problem.
However mine is a simple setup.

One computer (no lan)
3 users Logging in without passwords.
all 3 are administrators.

All I want is to log on as user1 and run a program through a batch file
using user2 profile settings for this program.
Any help?
Thanks all

bahri

Shenan Stanley
07-10-2005, 02:32 AM
bahri wrote:
> Hi all!
> I am trying to use the Runas command on windows Xp.
> Now I had a look at what's on the web, forums etc. and it seems I'm
> not the only one with this problem.
> However mine is a simple setup.
>
> One computer (no lan)
> 3 users Logging in without passwords.
> all 3 are administrators.
>
> All I want is to log on as user1 and run a program through a batch
> file using user2 profile settings for this program.
> Any help?

So.. You are still going to ask for the password?

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html

bahri
07-10-2005, 02:32 AM
Hi!
But if there is no password set for any of the users, what can I do?
If anyone can help with the sytax for this command please help

Thanks all
bahri

"Shenan Stanley" <newshelper@gmail.com> wrote in message
news:eMR1xsieFHA.3864@TK2MSFTNGP10.phx.gbl...
> bahri wrote:
> > Hi all!
> > I am trying to use the Runas command on windows Xp.
> > Now I had a look at what's on the web, forums etc. and it seems I'm
> > not the only one with this problem.
> > However mine is a simple setup.
> >
> > One computer (no lan)
> > 3 users Logging in without passwords.
> > all 3 are administrators.
> >
> > All I want is to log on as user1 and run a program through a batch
> > file using user2 profile settings for this program.
> > Any help?
>
> So.. You are still going to ask for the password?
>
> --
> Shenan Stanley
> MS-MVP
> --
> How To Ask Questions The Smart Way
> http://www.catb.org/~esr/faqs/smart-questions.html
>
>

Shenan Stanley
07-10-2005, 02:33 AM
bahri wrote:
> I am trying to use the Runas command on windows Xp.
> Now I had a look at what's on the web, forums etc. and it seems I'm
> not the only one with this problem.
> However mine is a simple setup.
>
> One computer (no lan)
> 3 users Logging in without passwords.
> all 3 are administrators.
>
> All I want is to log on as user1 and run a program through a batch
> file using user2 profile settings for this program.
> Any help?

Shenan Stanley wrote
> So.. You are still going to ask for the password?

bahri wrote:
> But if there is no password set for any of the users, what can I do?
> If anyone can help with the sytax for this command please help

First off, I am pretty sure runas requires the user to have a password.
Secondly - somehow I missed before that all users were administrators. So
you are doing this just to get he settings of one user and riun the
application under those settings rather than under the current users
settings - not a permissions issue, correct?

runas /user:mycomputer\myname "driveletter:\pathtocommand\cmd"

Enter the above line - substituting the other username/cmd that you will be
doing on the machine --> what happens?

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


Runas