Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I use the command runas and run a program as a different user on the domain will this actually return information regarding their computer or will it give me my comptuers information?

for example if I use

Runas (other user on domain) -tasklist.exe

Will this return their tasklist information?

share|improve this question

migrated from May 18 '11 at 14:48

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

No, this will just run the program locally on your machine with their credentials. I think SysInternals has a program that can execute commands on remote machines - I believe it's called PsExec.

share|improve this answer
I have heard of PsExec (but I need to download the toolset), the problem is I need to be able to execute a program on remote machines without downloading/using anything else. – harper89 May 18 '11 at 12:39

From Powershell you could issue the following command


Get-WmiObject -class win32_process | foreach { write-host $_.ProcessName -NoNewline ; Write-Host  $($_.getowner() | select domain, user) }

Sample Output

conhost.exe@{domain=LandLocked; user=userA}
iexplore.exe@{domain=LandLocked; user=userB}
iexplore.exe@{domain=LandLocked; user=userB}
chrome.exe@{domain=LandLocked; user=userA}
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .