1

I really like Mark Russinovich's Process Explorer so I'm always running it. I would like to automate this task of manually starting this process up every time I logon.

But I want this program to run as domain administrator even though I logon as a local user. The reason being is I can manage (kill) processes/services running under domain accounts.

So how do I do that?

I suppose if I create a local service using sc create command I won't be able to interact with Process Explorer then? Will I be able to see the icon in the task tray and open it etc etc?

So is this at all possible?

3 Answers 3

1

You can use the runas command:

runas /user:Administrator "C:\Program Files\Process Explorer\procexp.exe"

The only problem is that a command prompt will ask you for your password and will remain up for the whole time Process Explorer is open.

2
  • This is a partial solution. I could put this command into a BAT file and put it in the startup folder, but as you've said, there's a problem with password promting. I was more leaning towards Task Scheduler or a system Service that would do this. Aug 31, 2010 at 16:10
  • I accepted this answer because it came very close to what I needed. The only problem being the password. Sep 15, 2010 at 8:39
2

Task Scheduler almost meets your requirements.

In Windows 7 (and I think Vista?):

  • It is possible to trigger a task on log on.

  • It is possible to designate who the task should run as (However, I don't think doing this will have the desired effect - as running the software as as another user might not make it visible to the current user).

  • It is possible to set an task to run "with highest privileges" (ie, administrator / UAC elevated) if needed.

1

You can turn any program into a service with SrvAny, although I'm not certain SrvAny will work under Windows 7. You'll need to set it up so that the service is allowed to interact with the desktop. Try running it as Local System first. If that doesn't work, try it with the domain admin credentials.

1
  • I've tried doing this as well but windows doesn't get displayed and I can't interact with Process Explorer. but It was a nice try. Thanks. Sep 15, 2010 at 8:32

You must log in to answer this question.

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