runas

J

JIM.H.

Hello,
'runas /user:domain\username my.exe' does not work. It
says attempting to start my.exe but my.exe never starts.
Any idea?
Thanks,
Jim.
 
M

Matthias Tacke

JIM.H. said:
Hello,
'runas /user:domain\username my.exe' does not work. It
says attempting to start my.exe but my.exe never starts.
Any idea?
Thanks,
Jim.

Hello Jim
you don't supply a path, you neither load a /profile nor use the actual
/env. Maybe your prog was't found. Do you get any error messages ?

runas /?
might help you.

hth
 
A

Al Dunbar [MS-MVP]

Matthias Tacke said:
Hello Jim
you don't supply a path, you neither load a /profile nor use the actual
/env. Maybe your prog was't found. Do you get any error messages ?

runas /?
might help you.

Also, you do not mention if you were asked for a password - were you? If so,
what happened when you typed it?

/Al
 
J

JeffO

RUNAS can be a bear. I have yet to meet anyone who is
an "expert" on RUNAS and can say EXACTLY what works and
what doesn't and why.
Some things just don't work. I don't know why.
If you're getting a message that says it's attempting to
start, it would seem to know exactly where the EXE is.

Try the local administrator account credentials.
If the EXE is on a networked computer, try an account form
the remote computer that has both domain and local
administrator (on the remote PC) rights.

I've seen computers that were very messed up and the RUNAS
command didn't work correctly. I went around trying to
install the Adobe 6 patch one three machines. i had to use
extraordinary methods on each machine. Each machine
refused the ordinary and extraordinary means I used on the
other machines. The last one would not allow any of the
various RUNAS commands. I gave up and handed it back to
the primary tech support.

The patch was on my computer, "\\JeffsPC".
I was on "PC3776".
Logged on as the user, it wouldn't work at all.
Logged on as local admin, it wouldn't work.
I had to log on as local admin AND provide my personal
domain credentials:
RUNAS /user:Domain1\jeff \\JeffsPC\d$\Adobe\Ac60PrP1.exe

For brute-force remote RUNAS, try pasting these into a
batch file and edit them to your situation:

net use \\RemotePC\ipc$ /user:YourDomain\you
net use z: \\RemotePC\netshare /user:YourDomain\you
RUNAS /user:administrator xcopy z:\*.* C:\winnt\temp\temp1\
RUNAS /user:administrator C:\winnt\temp\temp1\Your.exe
pause
RUNAS /user:administrator del C:\winnt\temp\temp1\*.*
exit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top