Click to See Complete Forum and Search --> : RusAs question....


MQ
04-22-2002, 09:07 AM
Here is the snytax from the RusAs command on Windows 2000.

RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

My question. Can I create a .CMD (or other EXE) file that has the password of the user I want to use? I don't want my program to run and have it prompt for the password of user I am using.

I don't see a "/Password" switch in the help syntax for RusAs.

Thank you.
MQ

Jordan
04-23-2002, 04:03 PM
I don't beleive this is possible. Note the "NOTE: Enter user's password only when prompted."

Why not use the task scheduler? This lets you specify an account to run the "Application" (Or, your batch file) as.

Jordan

------------
MQ at 4/22/2002 10:07:19 AM

Here is the snytax from the RusAs command on Windows 2000.

RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

My question. Can I create a .CMD (or other EXE) file that has the password of the user I want to use? I don't want my program to run and have it prompt for the password of user I am using.

I don't see a "/Password" switch in the help syntax for RusAs.

Thank you.
MQ

MQ
04-26-2002, 03:58 PM
This will happen at run-time so using the Scheduler will not work for me. But I solved the problem using WinBatch. So I can install what I need for any user by having them run the EXE I give them that will in turn log on as a differnt user, then turn control back over to the logged on user.

Thanks.



------------
Jordan at 4/23/2002 5:03:57 PM

I don't beleive this is possible. Note the "NOTE: Enter user's password only when prompted."

Why not use the task scheduler? This lets you specify an account to run the "Application" (Or, your batch file) as.

Jordan

------------
MQ at 4/22/2002 10:07:19 AM

Here is the snytax from the RusAs command on Windows 2000.

RUNAS [/profile] [/env] [/netonly] /user:<UserName> program

My question. Can I create a .CMD (or other EXE) file that has the password of the user I want to use? I don't want my program to run and have it prompt for the password of user I am using.

I don't see a "/Password" switch in the help syntax for RusAs.

Thank you.
MQ