Discussion Locked

RUNAS command

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to use the RUNAS command to access the command prompt on another Win2k computer using that machine's local administor account.

this is the command I'm entering
runas /user:computer\administrator cmd

When I run this, I'm prompted for a password. After entering it, displays
'Logon failure: unknown user name or bad password'
I'm certain the password entered is correct.

Microsoft reports problems doing this if SP1 is installed. Both machines have SP2 and have the runas service started.

Is this a valid use of the RUNAS command?

5 replies

by huckleberryhound

RUNAS will always prompt you for a password. You might want to look at SU.EXE from the W2K server resource kit instead.

by mbaudino

I'm not completely clear on what your asking so I'll try and clarify as well as answer.

It sounds like you're trying to use runas to open the command prompt on machine A using the local administrator account on machine B. Or you're trying to open a command prompt on machine B from machine A using runas.

In either case it won't work. Runas will only execute on the computer you're running the command from. It will also only work if the userid being specified has rights on the computer.
In other words, from machine A you can type "runas /user:machinea\administrator cmd" and it will open the prompt after entering the proper password for machine A's administrator account. You can't do this on machine A using machine B's administrator account nor can you open a prompt on machine B from machine A.

Sorry if I've added to your confusion. I'm just not clear, from the wording of your question, what you're trying to accomplish. I hope I helped you though.

by nook

Thanks. That really helped.

I wanted to access the command line on machine B from machine A using machine B's admin acct. Looks like that's an invalid use of the RUNAS command.

This discussion is closed to new replies.