Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run program as adminisrators permanently

Status
Not open for further replies.

dgut

MIS
Feb 7, 2003
4
NO
I run Windows 2003 server sp1 with terminal services and a program that needs to run with administrators rights.

Is there a way that this program runs as a admin user without getting prompt for password every time? I will not apply users to the administrators group.
 
If you are running the application remotely you can create a shortcut which utilises the RUNAS command. There is a further utility called SANUR which checks a file for the password rather than prompt the user.

You obviously have the security risk of exposing your administrator password so you should be very careful. If this application has to run as an administrator I would recommend setting up a service account and locking down where it has access to.

The link below explains the utilities usage.....

 
See this thread:

There are 2 different programs that will create a "wrapper" to run programs as a different user:

I use AutoIt ( ) which has its own scripting language. Very simple to create 3 line script which sets user credentials (administrator), then calls external program as that user, then closes.

There is also RunAsUser from gpalmer711 found here on Tek-Tips ( ).

I had a DLL conflict with RunAsUser (sorry, don't remember exact details right now - it may have been a problem with Macro Express program). That was a while back. It may have been fixed and it was something that most people would not run across.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top