3

I'm working on my systems without admin rights, but I'd like to start sysinternals process explorer as full admin to have some debug access on my machine.

Right now I run procexp.exe with parameter /e, which prompts me for admin credentials.

Of course I could use runas, but for this I would need to put my admin passwort in clear text in the corresponding batch file, which is something I don't like to do.

Is there a way to tell windows that this one procexp.exe is allowed to run as admin without needing to enter the credentials?
In Unix systems this is done using setuid (or setgid), but how can I achieve this functionality in windows?

3
  • This sounds like a bad security policy to me. I hope Microsoft doesn't allow something like this.
    – surfasb
    Feb 15, 2011 at 12:16
  • Every unix system allows something like this. There are ways to make this secure, and it is better than having to enter the password as plain text in a runas command.
    – Sam
    Feb 16, 2011 at 9:59
  • 1
    btw. on unix this feature is called "set uid on execution".
    – Sam
    Feb 16, 2011 at 10:14

3 Answers 3

0

There is Encrypted RunAs from www.wingnutsoftware.com, which is not free but cheap. There is an alternative (free?) project called CPAU, but it seems basically abandoned.

2
  • Seems like it would be easier just to write your own 15 line long Java or C# program that would do this job nicely.
    – djangofan
    Sep 28, 2011 at 21:45
  • I would agree with that if this was Stack Overflow, or if the OP had indicated they were a developer. Non-developers read this site also. Sep 29, 2011 at 1:14
0

I found an answer on Stackoverflow, which works for me:

runas (at least on xp sp3) has option "/savecred" - it asks for password the first time and then it uses stored one (even after reboot).

You need to be aware that this is a security problem, though: after you ran /savecred once, every executable can execute itself with these saved credentials without any problems!!

-2

Right Click the Application shortcut -> Properties -> Compatibility and check "Run this program as an Administrator"

Hope this works and helps :)

1
  • 1
    It still asks for elevation, so no, it does not work.
    – Sam
    Feb 16, 2011 at 10:01

You must log in to answer this question.

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