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.
) 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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.