Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to configure an application to run as administrator all the time. I tried with the compatibility administrator utility but seems to work only for windows Vista and above.

The application is crashing because of some printer drivers that need admin rights.

EDIT: The application name is Zeh Raster and it's on Windows XP I would like not to provide the password each time that I need to run the app.

share|improve this question
    
Is this not the right place to ask this? Why the down votes? –  tou Jul 2 '13 at 17:09
    
There isn't enough information, such as what operating system you're running or what program you're trying to run. –  Taegost Jul 2 '13 at 17:10
1  
The question is tagged Windows-XP. The application name is Zeh Raster –  tou Jul 2 '13 at 17:11
add comment

2 Answers

Regardless what method you are using (at least for those I know), there will always be a way for malicious users to abuse it and run a different program with your administrator account. Therefore, if you have untrusted tech-savvy users, try to lock down the administrator account you use as good as possible (or if possible, tweak the locations where your program wants to write to so that non-admins can write there and the program works without admin privs; use ProcMon to find them).

  • CPAU can be used to store a program with credentials in an encrypted file and re-run the program with the credentials without user interaction (e. g. from a shortcut)
  • There is a program called Win-SUDO that claims to emulate SUDO for Windows - but in fact it also only stores the credentials encrypted in the registry at a location that is readable by the users who may use Win-SUDO.
  • Saving the credentials with the runas command with savecred works too, but you can run other programs as admin this way as well.
  • You can also create a "scheduled" task that is scheduled to run never and runs with the credentials of the user, and launch it manually when needed; this method also stores the credentials of the user that is supposed to run the task, but unlike runas command it is not that easy to reuse the credentials for different processes. Note that it is not possible to run an interactive process that way on Windows XP (or at least you cannot interact with it).

Anyway, the correct solution is to either try to get the original program running without admin privileges, or run it as a service in the background in case no user interaction is required. Or try to get the vendor to provide a fixed version that works without admin privileges or uses a service for those parts that need them.

share|improve this answer
add comment

You can use the runas.exe command to create a shortcut that launches with admin rights. Basically, make a new shortcut with the target:

runas.exe /user:administrator c:\path\to\program.exe
share|improve this answer
    
I was aware of this, but I would like not to have to provide the password each time they want to run the app. This is an enterprise environment. I updated my question –  tou Jul 2 '13 at 17:33
1  
@tou, did you try the /savecred switch ? –  Ofiris Jul 2 '13 at 17:43
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.